Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
The PangoAttrInt
structure is used to represent attributes with
an integer or enumeration value.
Synopsis
- newtype AttrInt = AttrInt (ManagedPtr AttrInt)
- newZeroAttrInt :: MonadIO m => m AttrInt
- getAttrIntAttr :: MonadIO m => AttrInt -> m Attribute
- getAttrIntValue :: MonadIO m => AttrInt -> m Int32
- setAttrIntValue :: MonadIO m => AttrInt -> Int32 -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq AttrInt Source # | |
BoxedPtr AttrInt Source # | |
Defined in GI.Pango.Structs.AttrInt boxedPtrCopy :: AttrInt -> IO AttrInt # boxedPtrFree :: AttrInt -> IO () # | |
CallocPtr AttrInt Source # | |
Defined in GI.Pango.Structs.AttrInt boxedPtrCalloc :: IO (Ptr AttrInt) # | |
ManagedPtrNewtype AttrInt Source # | |
Defined in GI.Pango.Structs.AttrInt toManagedPtr :: AttrInt -> ManagedPtr AttrInt # | |
tag ~ 'AttrSet => Constructible AttrInt tag Source # | |
Defined in GI.Pango.Structs.AttrInt |
Methods
Properties
attr
the common portion of the attribute
getAttrIntAttr :: MonadIO m => AttrInt -> m Attribute Source #
Get the value of the “attr
” field.
When overloading is enabled, this is equivalent to
get
attrInt #attr
value
the value of the attribute
getAttrIntValue :: MonadIO m => AttrInt -> m Int32 Source #
Get the value of the “value
” field.
When overloading is enabled, this is equivalent to
get
attrInt #value
setAttrIntValue :: MonadIO m => AttrInt -> Int32 -> m () Source #
Set the value of the “value
” field.
When overloading is enabled, this is equivalent to
set
attrInt [ #value:=
value ]