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.

  • ptr

    Untyped pointer to the underlying PangoFontsetSimple instance.

    Declaration

    Swift

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

    Typed pointer to the underlying PangoFontsetSimple instance.

    Default Implementation

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

    Declaration

    Swift

    var fontset_simple_ptr: UnsafeMutablePointer<PangoFontsetSimple>! { get }
  • Required Initialiser for types conforming to FontsetSimpleProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

FontsetSimple Class: FontsetSimpleProtocol extension (methods and fields)

  • 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 method

    Returns the number of fonts in the fontset.

    Declaration

    Swift

    @inlinable
    func size() -> Int