AttrFontDescProtocol
public protocol AttrFontDescProtocol
The PangoAttrFontDesc
structure is used to store an attribute that
sets all aspects of the font description at once.
The AttrFontDescProtocol
protocol exposes the methods and properties of an underlying PangoAttrFontDesc
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 AttrFontDesc
.
Alternatively, use AttrFontDescRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
PangoAttrFontDesc
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped pointer to the underlying
PangoAttrFontDesc
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
PangoAttrFontDesc
instance.Declaration
Swift
var _ptr: UnsafeMutablePointer<PangoAttrFontDesc>! { get }
-
Required Initialiser for types conforming to
AttrFontDescProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
attr
Extension methodthe common portion of the attribute
Declaration
Swift
@inlinable var attr: PangoAttribute { get set }
-
desc
Extension methodthe font description which is the value of this attribute
Declaration
Swift
@inlinable var desc: FontDescriptionRef! { get set }