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.AttrString

Description

The PangoAttrString structure is used to represent attributes with a string value.

Synopsis

Exported types

newtype AttrString Source #

Memory-managed wrapper type.

newZeroAttrString :: MonadIO m => m AttrString Source #

Construct a AttrString struct initialized to zero.

Methods

Properties

attr

the common portion of the attribute

getAttrStringAttr :: MonadIO m => AttrString -> m Attribute Source #

Get the value of the “attr” field. When overloading is enabled, this is equivalent to

get attrString #attr

value

the string which is the value of the attribute

clearAttrStringValue :: MonadIO m => AttrString -> m () Source #

Set the value of the “value” field to Nothing. When overloading is enabled, this is equivalent to

clear #value

getAttrStringValue :: MonadIO m => AttrString -> m (Maybe Text) Source #

Get the value of the “value” field. When overloading is enabled, this is equivalent to

get attrString #value

setAttrStringValue :: MonadIO m => AttrString -> CString -> m () Source #

Set the value of the “value” field. When overloading is enabled, this is equivalent to

set attrString [ #value := value ]