InputPurpose

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

    Declaration

    Swift

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

    Parameters

    raw

    The raw integer value to initialise the enum from

  • Allow any character

    Declaration

    Swift

    static let freeForm: GtkInputPurpose
  • Allow only alphabetic characters

    Declaration

    Swift

    static let alpha: GtkInputPurpose
  • Allow only digits

    Declaration

    Swift

    static let digits: GtkInputPurpose
  • Edited field expects numbers

    Declaration

    Swift

    static let number: GtkInputPurpose
  • Edited field expects phone number

    Declaration

    Swift

    static let phone: GtkInputPurpose
  • url

    Edited field expects URL

    Declaration

    Swift

    static let url: GtkInputPurpose
  • Edited field expects email address

    Declaration

    Swift

    static let email: GtkInputPurpose
  • Edited field expects the name of a person

    Declaration

    Swift

    static let name: GtkInputPurpose
  • Like GTK_INPUT_PURPOSE_FREE_FORM, but characters are hidden

    Declaration

    Swift

    static let password: GtkInputPurpose
  • pin

    Like GTK_INPUT_PURPOSE_DIGITS, but characters are hidden

    Declaration

    Swift

    static let pin: GtkInputPurpose
  • Allow any character, in addition to control codes

    Declaration

    Swift

    static let terminal: GtkInputPurpose