FontsetSimpleProtocol
public protocol FontsetSimpleProtocol : FontsetProtocol
PangoFontsetSimple is a implementation of the abstract
PangoFontset base class as an array of fonts.
When creating a PangoFontsetSimple, you have to provide
the array of fonts that make up the fontset.
The FontsetSimpleProtocol protocol exposes the methods and properties of an underlying PangoFontsetSimple 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 FontsetSimple.
Alternatively, use FontsetSimpleRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
PangoFontsetSimpleinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
fontset_simple_ptrDefault implementationTyped pointer to the underlying
PangoFontsetSimpleinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
PangoFontsetSimpleinstance.Declaration
Swift
var fontset_simple_ptr: UnsafeMutablePointer<PangoFontsetSimple>! { get } -
Required Initialiser for types conforming to
FontsetSimpleProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
append(font:Extension method) Adds a font to the fontset.
The fontset takes ownership of
font.Declaration
Swift
@inlinable func append<FontT>(font: FontT) where FontT : FontProtocol -
size()Extension methodReturns the number of fonts in the fontset.
Declaration
Swift
@inlinable func size() -> Int
View on GitHub
Install in Dash
FontsetSimpleProtocol Protocol Reference