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.

  • ptr

    Untyped pointer to the underlying PangoAttrClass instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • _ptr Default implementation

    Typed pointer to the underlying PangoAttrClass instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the PangoAttrClass instance.

    Declaration

    Swift

    var _ptr: UnsafeMutablePointer<PangoAttrClass>! { get }
  • Required Initialiser for types conforming to AttrClassProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

AttrClass Record: AttrClassProtocol extension (methods and fields)

  • type Extension method

    the type ID for this attribute

    Declaration

    Swift

    @inlinable
    var type: PangoAttrType { get set }