Gravity

public extension Gravity
  • Cast constructor, converting any binary integer to a Gravity.

    Declaration

    Swift

    @inlinable
    init!<I>(_ raw: I) where I : BinaryInteger

    Parameters

    raw

    The raw integer value to initialise the enum from

  • Glyphs stand upright (default) <img align=“right” valign=“center” src=“m-south.png”>

    Declaration

    Swift

    static let south: PangoGravity
  • Glyphs are rotated 90 degrees counter-clockwise. <img align=“right” valign=“center” src=“m-east.png”>

    Declaration

    Swift

    static let east: PangoGravity
  • Glyphs are upside-down. <img align=“right” valign=“cener” src=“m-north.png”>

    Declaration

    Swift

    static let north: PangoGravity
  • Glyphs are rotated 90 degrees clockwise. <img align=“right” valign=“center” src=“m-west.png”>

    Declaration

    Swift

    static let west: PangoGravity
  • Gravity is resolved from the context matrix

    Declaration

    Swift

    static let auto: PangoGravity