Unit

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

    Declaration

    Swift

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

    Parameters

    raw

    The raw integer value to initialise the enum from

  • No units.

    Declaration

    Swift

    static let none: GtkUnit
  • Dimensions in points.

    Declaration

    Swift

    static let points: GtkUnit
  • Dimensions in inches.

    Declaration

    Swift

    static let inch: GtkUnit
  • mm

    Dimensions in millimeters

    Declaration

    Swift

    static let mm: GtkUnit