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 |
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 (ForeignPtr Attribute)
- newZeroAttribute :: MonadIO m => m Attribute
- noAttribute :: Maybe Attribute
- attributeSetFree :: MonadIO m => [Ptr ()] -> m ()
- attributeClearName :: MonadIO m => Attribute -> m ()
- attributeName :: AttrLabelProxy "name"
- attributeReadName :: MonadIO m => Attribute -> m (Maybe Text)
- attributeWriteName :: MonadIO m => Attribute -> CString -> m ()
- attributeClearValue :: MonadIO m => Attribute -> m ()
- attributeReadValue :: MonadIO m => Attribute -> m (Maybe Text)
- attributeValue :: AttrLabelProxy "value"
- attributeWriteValue :: MonadIO m => Attribute -> CString -> m ()
Exported types
WrappedPtr Attribute | |
(~) AttrOpTag tag AttrSet => Constructible Attribute tag | |
((~) * info (ResolveAttributeMethod t Attribute), MethodInfo * info Attribute p) => IsLabelProxy t (Attribute -> p) | |
type AttributeList Attribute |
newZeroAttribute :: MonadIO m => m Attribute Source
Construct a Attribute
struct initialized to zero.
Methods
attributeSetFree
attributeSetFree :: MonadIO m => [Ptr ()] -> m () Source
Properties
Name
attributeClearName :: MonadIO m => Attribute -> m () Source
attributeName :: AttrLabelProxy "name" Source
attributeWriteName :: MonadIO m => Attribute -> CString -> m () Source
Value
attributeClearValue :: MonadIO m => Attribute -> m () Source
attributeValue :: AttrLabelProxy "value" Source
attributeWriteValue :: MonadIO m => Attribute -> CString -> m () Source