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 objectGetAttributes
)
or an document (see documentGetAttributes
). In the case of
text attributes (see textGetDefaultAttributes
),
TextAttribute
enum defines all the possible text attribute
names. You can use textAttributeGetName
to get the string
name from the enum value. See also textAttributeForName
and textAttributeGetValue
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 :: (HasCallStack, 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
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
:: (HasCallStack, MonadIO m) | |
=> [Ptr ()] |
|
-> m () |
Frees the memory used by an AtkAttributeSet
, including all its
AtkAttributes
.
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 #