AttributeProtocol
public protocol AttributeProtocol
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.
The AttributeProtocol
protocol exposes the methods and properties of an underlying AtkAttribute
instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see Attribute
.
Alternatively, use AttributeRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
AtkAttribute
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped pointer to the underlying
AtkAttribute
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
AtkAttribute
instance.Declaration
Swift
var _ptr: UnsafeMutablePointer<AtkAttribute>! { get }
-
Required Initialiser for types conforming to
AttributeProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)