AttrSizeProtocol
public protocol AttrSizeProtocol
The PangoAttrSize
structure is used to represent attributes which
set font size.
The AttrSizeProtocol
protocol exposes the methods and properties of an underlying PangoAttrSize
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 AttrSize
.
Alternatively, use AttrSizeRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
PangoAttrSize
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped pointer to the underlying
PangoAttrSize
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
PangoAttrSize
instance.Declaration
Swift
var _ptr: UnsafeMutablePointer<PangoAttrSize>! { get }
-
Required Initialiser for types conforming to
AttrSizeProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
attr
Extension methodthe common portion of the attribute
Declaration
Swift
@inlinable var attr: PangoAttribute { get set }
-
size
Extension methodsize of font, in units of 1/
PANGO_SCALE
of a point (forPANGO_ATTR_SIZE
) or of a device unit (forPANGO_ATTR_ABSOLUTE_SIZE
)Declaration
Swift
@inlinable var size: gint { get set }
-
absolute
Extension methodwhether the font size is in device units or points. This field is only present for compatibility with Pango-1.8.0 (
PANGO_ATTR_ABSOLUTE_SIZE
was added in 1.8.1); and always will befalse
forPANGO_ATTR_SIZE
andtrue
forPANGO_ATTR_ABSOLUTE_SIZE
.Declaration
Swift
@inlinable var absolute: guint { get set }