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
AtkAttributeinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
_ptrDefault implementationTyped pointer to the underlying
AtkAttributeinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
AtkAttributeinstance.Declaration
Swift
var _ptr: UnsafeMutablePointer<AtkAttribute>! { get } -
Required Initialiser for types conforming to
AttributeProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
View on GitHub
Install in Dash
AttributeProtocol Protocol Reference