AttrStringProtocol

public protocol AttrStringProtocol

The PangoAttrString structure is used to represent attributes with a string value.

The AttrStringProtocol protocol exposes the methods and properties of an underlying PangoAttrString 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 AttrString. Alternatively, use AttrStringRef as a lighweight, unowned reference if you already have an instance you just want to use.

  • ptr

    Untyped pointer to the underlying PangoAttrString instance.

    Declaration

    Swift

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

    Typed pointer to the underlying PangoAttrString instance.

    Default Implementation

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

    Declaration

    Swift

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

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

AttrString Record: AttrStringProtocol extension (methods and fields)

  • attr Extension method

    the common portion of the attribute

    Declaration

    Swift

    @inlinable
    var attr: PangoAttribute { get set }
  • value Extension method

    the string which is the value of the attribute

    Declaration

    Swift

    @inlinable
    var value: UnsafeMutablePointer<CChar>! { get set }