AttrListRef

public struct AttrListRef : AttrListProtocol

A PangoAttrList represents a list of attributes that apply to a section of text.

The attributes in a PangoAttrList are, in general, allowed to overlap in an arbitrary fashion. However, if the attributes are manipulated only through [methodPango.AttrList.change], the overlap between properties will meet stricter criteria.

Since the PangoAttrList structure is stored as a linear list, it is not suitable for storing attributes for large amounts of text. In general, you should not use a single PangoAttrList for more than one paragraph of text.

The AttrListRef type acts as a lightweight Swift reference to an underlying PangoAttrList instance. It exposes methods that can operate on this data type through AttrListProtocol conformance. Use AttrListRef only as an unowned reference to an existing PangoAttrList instance.

  • ptr
    Untyped pointer to the underlying `PangoAttrList` instance.
    

    For type-safe access, use the generated, typed pointer attr_list_ptr property instead.

    Declaration

    Swift

    public let ptr: UnsafeMutableRawPointer!

AttrList Record

  • Designated initialiser from the underlying C data type

    Declaration

    Swift

    @inlinable
    init(_ p: UnsafeMutablePointer<PangoAttrList>)
  • Designated initialiser from a constant pointer to the underlying C data type

    Declaration

    Swift

    @inlinable
    init(_ p: UnsafePointer<PangoAttrList>)
  • Conditional initialiser from an optional pointer to the underlying C data type

    Declaration

    Swift

    @inlinable
    init!(_ maybePointer: UnsafeMutablePointer<PangoAttrList>?)
  • Conditional initialiser from an optional, non-mutable pointer to the underlying C data type

    Declaration

    Swift

    @inlinable
    init!(_ maybePointer: UnsafePointer<PangoAttrList>?)
  • Conditional initialiser from an optional gpointer

    Declaration

    Swift

    @inlinable
    init!(gpointer g: gpointer?)
  • Conditional initialiser from an optional, non-mutable gconstpointer

    Declaration

    Swift

    @inlinable
    init!(gconstpointer g: gconstpointer?)
  • Reference intialiser for a related type that implements AttrListProtocol

    Declaration

    Swift

    @inlinable
    init<T>(_ other: T) where T : AttrListProtocol
  • Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to AttrListProtocol.

    Declaration

    Swift

    @inlinable
    init<T>(cPointer: UnsafeMutablePointer<T>)
  • Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to AttrListProtocol.

    Declaration

    Swift

    @inlinable
    init<T>(constPointer: UnsafePointer<T>)
  • Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to AttrListProtocol.

    Declaration

    Swift

    @inlinable
    init(mutating raw: UnsafeRawPointer)
  • Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to AttrListProtocol.

    Declaration

    Swift

    @inlinable
    init(raw: UnsafeMutableRawPointer)
  • Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to AttrListProtocol.

    Declaration

    Swift

    @inlinable
    init(opaquePointer: OpaquePointer)
  • Create a new empty attribute list with a reference
    

    count of one.

    Declaration

    Swift

    @inlinable
    init()
  • Deserializes a PangoAttrList from a string.

    This is the counterpart to [methodPango.AttrList.to_string]. See that functions for details about the format.

    Declaration

    Swift

    @inlinable
    static func from(string text: UnsafePointer<CChar>!) -> Pango.AttrListRef!