Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
The AttrInt
structure is used to represent attributes with
an integer or enumeration value.
Synopsis
- newtype AttrInt = AttrInt (ManagedPtr AttrInt)
- newZeroAttrInt :: MonadIO m => m AttrInt
- noAttrInt :: Maybe 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 # | |
WrappedPtr AttrInt Source # | |
Defined in GI.Pango.Structs.AttrInt wrappedPtrCalloc :: IO (Ptr AttrInt) # wrappedPtrCopy :: AttrInt -> IO AttrInt # | |
tag ~ 'AttrSet => Constructible AttrInt tag Source # | |
Defined in GI.Pango.Structs.AttrInt |
Methods
Overloaded 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 ]