| Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Atk.Structs.Attribute
Description
AtkAttribute is a string name/value pair representing a generic attribute. This can be used to expose additional information from an accessible object as a whole (see atk_object_get_attributes()) or an document (see atk_document_get_attributes()). In the case of text attributes (see atk_text_get_default_attributes()), #AtkTextAttribute enum defines all the possible text attribute names. You can use atk_text_attribute_get_name() to get the string name from the enum value. See also atk_text_attribute_for_name() and atk_text_attribute_get_value() for more information.
A string name/value pair representing a generic attribute.
- newtype Attribute = Attribute (ManagedPtr Attribute)
- newZeroAttribute :: MonadIO m => m Attribute
- noAttribute :: Maybe Attribute
- attributeSetFree :: MonadIO m => [Ptr ()] -> m ()
- attribute_name :: AttrLabelProxy "name"
- clearAttributeName :: MonadIO m => Attribute -> m ()
- getAttributeName :: MonadIO m => Attribute -> m (Maybe Text)
- setAttributeName :: MonadIO m => Attribute -> CString -> m ()
- attribute_value :: AttrLabelProxy "value"
- clearAttributeValue :: MonadIO m => Attribute -> m ()
- getAttributeValue :: MonadIO m => Attribute -> m (Maybe Text)
- setAttributeValue :: MonadIO m => Attribute -> CString -> m ()
Exported types
Instances
| WrappedPtr Attribute Source # | |
| (~) AttrOpTag tag AttrSet => Constructible Attribute tag Source # | |
| ((~) * info (ResolveAttributeMethod t Attribute), MethodInfo * info Attribute p) => IsLabel t (Attribute -> p) Source # | |
| ((~) * info (ResolveAttributeMethod t Attribute), MethodInfo * info Attribute p) => IsLabelProxy t (Attribute -> p) Source # | |
| HasAttributeList * Attribute Source # | |
| type AttributeList Attribute Source # | |
newZeroAttribute :: MonadIO m => m Attribute Source #
Construct a Attribute struct initialized to zero.
Methods
setFree
attributeSetFree :: MonadIO m => [Ptr ()] -> m () Source #
Properties
name
attribute_name :: AttrLabelProxy "name" Source #
clearAttributeName :: MonadIO m => Attribute -> m () Source #
value
attribute_value :: AttrLabelProxy "value" Source #
clearAttributeValue :: MonadIO m => Attribute -> m () Source #