gi-pango-1.0.22: 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.AttrLanguage

Description

The AttrLanguage structure is used to represent attributes that are languages.

Synopsis

Exported types

newZeroAttrLanguage :: MonadIO m => m AttrLanguage Source #

Construct a AttrLanguage struct initialized to zero.

Methods

Overloaded methods

new

attrLanguageNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Language

language: language tag

-> m Attribute

Returns: the newly allocated Attribute, which should be freed with attributeDestroy.

Create a new language tag attribute.

Properties

attr

the common portion of the attribute

getAttrLanguageAttr :: MonadIO m => AttrLanguage -> m Attribute Source #

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

get attrLanguage #attr

value

the Language which is the value of the attribute

clearAttrLanguageValue :: MonadIO m => AttrLanguage -> m () Source #

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

clear #value

getAttrLanguageValue :: MonadIO m => AttrLanguage -> m (Maybe Language) Source #

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

get attrLanguage #value

setAttrLanguageValue :: MonadIO m => AttrLanguage -> Ptr Language -> m () Source #

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

set attrLanguage [ #value := value ]