hildon-libs 0.14.11 Reference Manual |
---|
hildon-input-mode-hinthildon-input-mode-hint — Wrappers for setting GtkEntry and GtkTextView input modes and autocapitalization. |
#define HILDON_INPUT_MODE_HINT #define HILDON_AUTOCAP enum HildonInputModeHint;
g_object_set(G_OBJECT(entry), "input-mode", HILDON_INPUT_MODE_HINT_NUMERIC, NULL); g_object_set(G_OBJECT(entry), "autocap", FALSE, NULL);
#define HILDON_INPUT_MODE_HINT "input-mode"
Use this to set the input mode in text widget. Note that this affects only input methods layout.
typedef enum { HILDON_INPUT_MODE_HINT_ALPHANUMERICSPECIAL = 0, HILDON_INPUT_MODE_HINT_NUMERIC, HILDON_INPUT_MODE_HINT_ALPHA, HILDON_INPUT_MODE_HINT_NUMERICSPECIAL, HILDON_INPUT_MODE_HINT_ALPHASPECIAL, HILDON_INPUT_MODE_HINT_ALPHANUMERIC, HILDON_INPUT_MODE_HINT_HEXA, HILDON_INPUT_MODE_HINT_HEXASPECIAL, HILDON_INPUT_MODE_HINT_TELE, HILDON_INPUT_MODE_HINT_TELESPECIAL } HildonInputModeHint;
Keys to set the mode in a GtkEntry widget into ALPHANUMERIC or NUMERIC mode. Note that this is only a hint; it only shows VKB with specified layout. Use it by calling 'g_object_set(G_OBJECT(entry), "input-mode", HILDON_INPUT_MODE_HINT_NUMERIC, NULL);'.
HILDON_INPUT_MODE_HINT_ALPHANUMERICSPECIAL |
accept all characters. |
HILDON_INPUT_MODE_HINT_NUMERIC |
accept only NUMERIC characters. |
HILDON_INPUT_MODE_HINT_ALPHA |
accept only ALPHA characters |
HILDON_INPUT_MODE_HINT_NUMERICSPECIAL |
accept only NUMERIC and SPECIAL |
HILDON_INPUT_MODE_HINT_ALPHASPECIAL |
accept only ALPHA and SPECIAL |
HILDON_INPUT_MODE_HINT_ALPHANUMERIC |
accept only ALPHA and NUMERIC |
HILDON_INPUT_MODE_HINT_HEXA |
accept only HEXA |
HILDON_INPUT_MODE_HINT_HEXASPECIAL |
accept only HEXA and SPECIAL |
HILDON_INPUT_MODE_HINT_TELE |
accept only TELEPHONE |
HILDON_INPUT_MODE_HINT_TELESPECIAL |
accept only TELEPHONE and SPECIAL |
<< hildon-system-sound | hildon-defines >> |