gi-pango-1.0.23: Pango bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Pango.Structs.AttrFloat

Description

The AttrFloat structure is used to represent attributes with a float or double value.

Synopsis

Exported types

newtype AttrFloat Source #

Memory-managed wrapper type.

Instances

Instances details
Eq AttrFloat Source # 
Instance details

Defined in GI.Pango.Structs.AttrFloat

ManagedPtrNewtype AttrFloat Source # 
Instance details

Defined in GI.Pango.Structs.AttrFloat

BoxedPtr AttrFloat Source # 
Instance details

Defined in GI.Pango.Structs.AttrFloat

CallocPtr AttrFloat Source # 
Instance details

Defined in GI.Pango.Structs.AttrFloat

tag ~ 'AttrSet => Constructible AttrFloat tag Source # 
Instance details

Defined in GI.Pango.Structs.AttrFloat

Methods

new :: MonadIO m => (ManagedPtr AttrFloat -> AttrFloat) -> [AttrOp AttrFloat tag] -> m 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

set attrFloat [ #value := value ]