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.
-
Untyped pointer to the underlying `PangoAttrList` instance.For type-safe access, use the generated, typed pointer
attr_list_ptrproperty instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<PangoAttrList>) -
Designated initialiser from a constant pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<PangoAttrList>) -
Conditional initialiser from an optional pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<PangoAttrList>?) -
Conditional initialiser from an optional, non-mutable pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<PangoAttrList>?) -
Conditional initialiser from an optional
gpointerDeclaration
Swift
@inlinable init!(gpointer g: gpointer?) -
Conditional initialiser from an optional, non-mutable
gconstpointerDeclaration
Swift
@inlinable init!(gconstpointer g: gconstpointer?) -
Reference intialiser for a related type that implements
AttrListProtocolDeclaration
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 referencecount of one.
Declaration
Swift
@inlinable init() -
Deserializes a
PangoAttrListfrom a string.This is the counterpart to [method
Pango.AttrList.to_string]. See that functions for details about the format.Declaration
Swift
@inlinable static func from(string text: UnsafePointer<CChar>!) -> Pango.AttrListRef!
View on GitHub
Install in Dash
AttrListRef Structure Reference