GravityHint

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

    Declaration

    Swift

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

    Parameters

    raw

    The raw integer value to initialise the enum from

  • scripts will take their natural gravity based on the base gravity and the script. This is the default.

    Declaration

    Swift

    static let natural: PangoGravityHint
  • always use the base gravity set, regardless of the script.

    Declaration

    Swift

    static let strong: PangoGravityHint
  • for scripts not in their natural direction (eg. Latin in East gravity), choose per-script gravity such that every script respects the line progression. This means, Latin and Arabic will take opposite gravities and both flow top-to-bottom for example.

    Declaration

    Swift

    static let line: PangoGravityHint