gi-atk-2.0.6: Atk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Atk.Structs.Attribute

Contents

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.

Synopsis

Exported types

newtype Attribute Source #

Instances

WrappedPtr Attribute Source # 
(~) AttrOpTag tag AttrSet => Constructible Attribute tag Source # 

Methods

new :: MonadIO m => (ForeignPtr Attribute -> Attribute) -> [AttrOp Attribute tag] -> m Attribute

((~) * info (ResolveAttributeMethod t Attribute), MethodInfo * info Attribute p) => IsLabel t (Attribute -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> Attribute -> p #

((~) * info (ResolveAttributeMethod t Attribute), MethodInfo * info Attribute p) => IsLabelProxy t (Attribute -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> Attribute -> p

HasAttributeList * Attribute Source # 
type AttributeList Attribute Source # 
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

attributeName :: AttrLabelProxy "name" Source #

Value

attributeValue :: AttrLabelProxy "value" Source #