Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
The AttrLanguage
structure is used to represent attributes that
are languages.
Synopsis
- newtype AttrLanguage = AttrLanguage (ManagedPtr AttrLanguage)
- newZeroAttrLanguage :: MonadIO m => m AttrLanguage
- noAttrLanguage :: Maybe AttrLanguage
- attrLanguageNew :: (HasCallStack, MonadIO m) => Language -> m Attribute
- getAttrLanguageAttr :: MonadIO m => AttrLanguage -> m Attribute
- clearAttrLanguageValue :: MonadIO m => AttrLanguage -> m ()
- getAttrLanguageValue :: MonadIO m => AttrLanguage -> m (Maybe Language)
- setAttrLanguageValue :: MonadIO m => AttrLanguage -> Ptr Language -> m ()
Exported types
newtype AttrLanguage Source #
Memory-managed wrapper type.
Instances
Eq AttrLanguage Source # | |
Defined in GI.Pango.Structs.AttrLanguage (==) :: AttrLanguage -> AttrLanguage -> Bool # (/=) :: AttrLanguage -> AttrLanguage -> Bool # | |
WrappedPtr AttrLanguage Source # | |
Defined in GI.Pango.Structs.AttrLanguage | |
tag ~ 'AttrSet => Constructible AttrLanguage tag Source # | |
Defined in GI.Pango.Structs.AttrLanguage new :: MonadIO m => (ManagedPtr AttrLanguage -> AttrLanguage) -> [AttrOp AttrLanguage tag] -> m AttrLanguage # |
newZeroAttrLanguage :: MonadIO m => m AttrLanguage Source #
Construct a AttrLanguage
struct initialized to zero.
noAttrLanguage :: Maybe AttrLanguage Source #
A convenience alias for Nothing
:: Maybe
AttrLanguage
.
Methods
Overloaded methods
new
:: (HasCallStack, MonadIO m) | |
=> Language |
|
-> m Attribute | Returns: the newly allocated |
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 ]