GlyphInfoProtocol
public protocol GlyphInfoProtocol
A PangoGlyphInfo
structure represents a single glyph with
positioning information and visual attributes.
The GlyphInfoProtocol
protocol exposes the methods and properties of an underlying PangoGlyphInfo
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 GlyphInfo
.
Alternatively, use GlyphInfoRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
PangoGlyphInfo
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped pointer to the underlying
PangoGlyphInfo
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
PangoGlyphInfo
instance.Declaration
Swift
var _ptr: UnsafeMutablePointer<PangoGlyphInfo>! { get }
-
Required Initialiser for types conforming to
GlyphInfoProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
glyph
Extension methodthe glyph itself.
Declaration
Swift
@inlinable var glyph: PangoGlyph { get set }
-
geometry
Extension methodthe positional information about the glyph.
Declaration
Swift
@inlinable var geometry: PangoGlyphGeometry { get set }
-
attr
Extension methodthe visual attributes of the glyph.
Declaration
Swift
@inlinable var attr: PangoGlyphVisAttr { get set }