gi-pango-1.0.16: Pango bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Pango.Structs.AttrInt

Contents

Description

The AttrInt 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
WrappedPtr 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.

noAttrInt :: Maybe AttrInt Source #

A convenience alias for Nothing :: Maybe AttrInt.

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 ]