AttrClassProtocol
public protocol AttrClassProtocol
The PangoAttrClass structure stores the type and operations for
a particular type of attribute.
The functions in this structure should not be called directly. Instead,
one should use the wrapper functions provided for PangoAttribute.
The AttrClassProtocol protocol exposes the methods and properties of an underlying PangoAttrClass 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 AttrClass.
Alternatively, use AttrClassRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
PangoAttrClassinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
_ptrDefault implementationTyped pointer to the underlying
PangoAttrClassinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
PangoAttrClassinstance.Declaration
Swift
var _ptr: UnsafeMutablePointer<PangoAttrClass>! { get } -
Required Initialiser for types conforming to
AttrClassProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
typeExtension methodthe type ID for this attribute
Declaration
Swift
@inlinable var type: PangoAttrType { get set }
View on GitHub
Install in Dash
AttrClassProtocol Protocol Reference