gi-pango-1.0.25: Pango bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Pango.Structs.AttrInt

Description

The PangoAttrInt structure is used to represent attributes with an integer or enumeration value.

Synopsis

Exported types

newtype AttrInt Source #

Memory-managed wrapper type.

Constructors

AttrInt (ManagedPtr AttrInt) 

Instances

Instances details
Eq AttrInt Source # 
Instance details

Defined in GI.Pango.Structs.AttrInt

Methods

(==) :: AttrInt -> AttrInt -> Bool #

(/=) :: AttrInt -> AttrInt -> Bool #

BoxedPtr AttrInt Source # 
Instance details

Defined in GI.Pango.Structs.AttrInt

CallocPtr AttrInt Source # 
Instance details

Defined in GI.Pango.Structs.AttrInt

ManagedPtrNewtype AttrInt Source # 
Instance details

Defined in GI.Pango.Structs.AttrInt

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

Defined in GI.Pango.Structs.AttrInt

Methods

new :: MonadIO m => (ManagedPtr AttrInt -> AttrInt) -> [AttrOp AttrInt tag] -> m AttrInt #

newZeroAttrInt :: MonadIO m => m AttrInt Source #

Construct a AttrInt struct initialized to zero.

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 ]