| 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 |
GI.Pango.Structs.AttrFloat
Description
The AttrFloat structure is used to represent attributes with
a float or double value.
Synopsis
- newtype AttrFloat = AttrFloat (ManagedPtr AttrFloat)
- newZeroAttrFloat :: MonadIO m => m AttrFloat
- getAttrFloatAttr :: MonadIO m => AttrFloat -> m Attribute
- getAttrFloatValue :: MonadIO m => AttrFloat -> m Double
- setAttrFloatValue :: MonadIO m => AttrFloat -> Double -> m ()
Exported types
Memory-managed wrapper type.
Constructors
| AttrFloat (ManagedPtr AttrFloat) |
Instances
| Eq AttrFloat Source # | |
| ManagedPtrNewtype AttrFloat Source # | |
Defined in GI.Pango.Structs.AttrFloat Methods | |
| BoxedPtr AttrFloat Source # | |
Defined in GI.Pango.Structs.AttrFloat | |
| CallocPtr AttrFloat Source # | |
Defined in GI.Pango.Structs.AttrFloat Methods boxedPtrCalloc :: IO (Ptr AttrFloat) # | |
| tag ~ 'AttrSet => Constructible AttrFloat tag Source # | |
Defined in GI.Pango.Structs.AttrFloat | |
newZeroAttrFloat :: MonadIO m => m AttrFloat Source #
Construct a AttrFloat struct initialized to zero.
Methods
Overloaded methods
Properties
attr
the common portion of the attribute
getAttrFloatAttr :: MonadIO m => AttrFloat -> m Attribute Source #
Get the value of the “attr” field.
When overloading is enabled, this is equivalent to
get attrFloat #attr
value
the value of the attribute
getAttrFloatValue :: MonadIO m => AttrFloat -> m Double Source #
Get the value of the “value” field.
When overloading is enabled, this is equivalent to
get attrFloat #value
setAttrFloatValue :: MonadIO m => AttrFloat -> Double -> m () Source #
Set the value of the “value” field.
When overloading is enabled, this is equivalent to
setattrFloat [ #value:=value ]