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.

  • ptr

    Untyped pointer to the underlying PangoAttrSize instance.

    Declaration

    Swift

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

    Typed 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)

AttrSize Record: AttrSizeProtocol extension (methods and fields)

  • attr Extension method

    the common portion of the attribute

    Declaration

    Swift

    @inlinable
    var attr: PangoAttribute { get set }
  • size Extension method

    size of font, in units of 1/PANGO_SCALE of a point (for PANGO_ATTR_SIZE) or of a device unit (for PANGO_ATTR_ABSOLUTE_SIZE)

    Declaration

    Swift

    @inlinable
    var size: gint { get set }
  • absolute Extension method

    whether 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 be false for PANGO_ATTR_SIZE and true for PANGO_ATTR_ABSOLUTE_SIZE.

    Declaration

    Swift

    @inlinable
    var absolute: guint { get set }