Gjsify LogoGjsify Logo

Describes primary purpose of the input widget.

This information is useful for on-screen keyboards and similar input methods to decide which keys should be presented to the user.

Note that the purpose is not meant to impose a totally strict rule about allowed characters, and does not replace input validation. It is fine for an on-screen keyboard to let the user override the character set restriction that is expressed by the purpose. The application is expected to validate the entry contents, even if it specified a purpose.

The difference between %GTK_INPUT_PURPOSE_DIGITS and %GTK_INPUT_PURPOSE_NUMBER is that the former accepts only digits while the latter also some punctuation (like commas or points, plus, minus) and “e” or “E” as in 3.14E+000.

This enumeration may be extended in the future; input methods should interpret unknown values as “free form”.

Index

Enumeration Members

ALPHA: number

Allow only alphabetic characters

DIGITS: number

Allow only digits

EMAIL: number

Edited field expects email address

FREE_FORM: number

Allow any character

NAME: number

Edited field expects the name of a person

NUMBER: number

Edited field expects numbers

PASSWORD: number

Like %GTK_INPUT_PURPOSE_FREE_FORM, but characters are hidden

PHONE: number

Edited field expects phone number

PIN: number

Like %GTK_INPUT_PURPOSE_DIGITS, but characters are hidden

TERMINAL: number

Allow any character, in addition to control codes

URL: number

Edited field expects URL

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method