TextClipType

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

    Declaration

    Swift

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

    Parameters

    raw

    The raw integer value to initialise the enum from

  • No clipping to be done

    Declaration

    Swift

    static let none: Int
  • min

    Text clipped by min coordinate is omitted

    Declaration

    Swift

    static let min: AtkTextClipType
  • max

    Text clipped by max coordinate is omitted

    Declaration

    Swift

    static let max: AtkTextClipType
  • Only text fully within mix/max bound is retained

    Declaration

    Swift

    static let both: AtkTextClipType