} Ecore_X_Window_Configure_Mask;
typedef enum _Ecore_X_Virtual_Keyboard_State {
- ECORE_X_VIRTUAL_KEYOBARD_STATE_UNKNOWN = 0,
- ECORE_X_VIRTUAL_KEYOBARD_STATE_OFF,
- ECORE_X_VIRTUAL_KEYOBARD_STATE_ON,
- ECORE_X_VIRTUAL_KEYOBARD_STATE_ALPHA,
- ECORE_X_VIRTUAL_KEYOBARD_STATE_NUMERIC,
- ECORE_X_VIRTUAL_KEYOBARD_STATE_PIN,
- ECORE_X_VIRTUAL_KEYOBARD_STATE_PHONE_NUMBER,
- ECORE_X_VIRTUAL_KEYOBARD_STATE_HEX,
- ECORE_X_VIRTUAL_KEYOBARD_STATE_TERMINAL,
- ECORE_X_VIRTUAL_KEYOBARD_STATE_PASSWORD
+ ECORE_X_VIRTUAL_KEYBOARD_STATE_UNKNOWN = 0,
+ ECORE_X_VIRTUAL_KEYBOARD_STATE_OFF,
+ ECORE_X_VIRTUAL_KEYBOARD_STATE_ON,
+ ECORE_X_VIRTUAL_KEYBOARD_STATE_ALPHA,
+ ECORE_X_VIRTUAL_KEYBOARD_STATE_NUMERIC,
+ ECORE_X_VIRTUAL_KEYBOARD_STATE_PIN,
+ ECORE_X_VIRTUAL_KEYBOARD_STATE_PHONE_NUMBER,
+ ECORE_X_VIRTUAL_KEYBOARD_STATE_HEX,
+ ECORE_X_VIRTUAL_KEYBOARD_STATE_TERMINAL,
+ ECORE_X_VIRTUAL_KEYBOARD_STATE_PASSWORD
} Ecore_X_Virtual_Keyboard_State;
static Ecore_X_Virtual_Keyboard_State
_ecore_x_e_vkbd_state_get(Ecore_X_Atom atom)
{
- if (atom == ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_ON) return ECORE_X_VIRTUAL_KEYOBARD_STATE_ON;
- if (atom == ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_OFF) return ECORE_X_VIRTUAL_KEYOBARD_STATE_OFF;
- if (atom == ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_ALPHA) return ECORE_X_VIRTUAL_KEYOBARD_STATE_ALPHA;
- if (atom == ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_NUMERIC) return ECORE_X_VIRTUAL_KEYOBARD_STATE_NUMERIC;
- if (atom == ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_PIN) return ECORE_X_VIRTUAL_KEYOBARD_STATE_PIN;
- if (atom == ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_PHONE_NUMBER) return ECORE_X_VIRTUAL_KEYOBARD_STATE_PHONE_NUMBER;
- if (atom == ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_HEX) return ECORE_X_VIRTUAL_KEYOBARD_STATE_HEX;
- if (atom == ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_TERMINAL) return ECORE_X_VIRTUAL_KEYOBARD_STATE_TERMINAL;
- if (atom == ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_PASSWORD) return ECORE_X_VIRTUAL_KEYOBARD_STATE_PASSWORD;
- return ECORE_X_VIRTUAL_KEYOBARD_STATE_UNKNOWN;
+ if (atom == ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_ON) return ECORE_X_VIRTUAL_KEYBOARD_STATE_ON;
+ if (atom == ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_OFF) return ECORE_X_VIRTUAL_KEYBOARD_STATE_OFF;
+ if (atom == ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_ALPHA) return ECORE_X_VIRTUAL_KEYBOARD_STATE_ALPHA;
+ if (atom == ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_NUMERIC) return ECORE_X_VIRTUAL_KEYBOARD_STATE_NUMERIC;
+ if (atom == ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_PIN) return ECORE_X_VIRTUAL_KEYBOARD_STATE_PIN;
+ if (atom == ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_PHONE_NUMBER) return ECORE_X_VIRTUAL_KEYBOARD_STATE_PHONE_NUMBER;
+ if (atom == ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_HEX) return ECORE_X_VIRTUAL_KEYBOARD_STATE_HEX;
+ if (atom == ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_TERMINAL) return ECORE_X_VIRTUAL_KEYBOARD_STATE_TERMINAL;
+ if (atom == ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_PASSWORD) return ECORE_X_VIRTUAL_KEYBOARD_STATE_PASSWORD;
+ return ECORE_X_VIRTUAL_KEYBOARD_STATE_UNKNOWN;
}
static Ecore_X_Atom
{
switch (state)
{
- case ECORE_X_VIRTUAL_KEYOBARD_STATE_OFF: return ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_OFF;
- case ECORE_X_VIRTUAL_KEYOBARD_STATE_ON: return ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_ON;
- case ECORE_X_VIRTUAL_KEYOBARD_STATE_ALPHA: return ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_ALPHA;
- case ECORE_X_VIRTUAL_KEYOBARD_STATE_NUMERIC: return ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_NUMERIC;
- case ECORE_X_VIRTUAL_KEYOBARD_STATE_PIN: return ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_PIN;
- case ECORE_X_VIRTUAL_KEYOBARD_STATE_PHONE_NUMBER: return ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_PHONE_NUMBER;
- case ECORE_X_VIRTUAL_KEYOBARD_STATE_HEX: return ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_HEX;
- case ECORE_X_VIRTUAL_KEYOBARD_STATE_TERMINAL: return ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_TERMINAL;
- case ECORE_X_VIRTUAL_KEYOBARD_STATE_PASSWORD: return ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_PASSWORD;
+ case ECORE_X_VIRTUAL_KEYBOARD_STATE_OFF: return ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_OFF;
+ case ECORE_X_VIRTUAL_KEYBOARD_STATE_ON: return ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_ON;
+ case ECORE_X_VIRTUAL_KEYBOARD_STATE_ALPHA: return ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_ALPHA;
+ case ECORE_X_VIRTUAL_KEYBOARD_STATE_NUMERIC: return ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_NUMERIC;
+ case ECORE_X_VIRTUAL_KEYBOARD_STATE_PIN: return ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_PIN;
+ case ECORE_X_VIRTUAL_KEYBOARD_STATE_PHONE_NUMBER: return ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_PHONE_NUMBER;
+ case ECORE_X_VIRTUAL_KEYBOARD_STATE_HEX: return ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_HEX;
+ case ECORE_X_VIRTUAL_KEYBOARD_STATE_TERMINAL: return ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_TERMINAL;
+ case ECORE_X_VIRTUAL_KEYBOARD_STATE_PASSWORD: return ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_PASSWORD;
default: return 0;
}
return 0;
if (!ecore_x_window_prop_atom_get(win, ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_STATE,
&atom, 1))
- return ECORE_X_VIRTUAL_KEYOBARD_STATE_UNKNOWN;
+ return ECORE_X_VIRTUAL_KEYBOARD_STATE_UNKNOWN;
return _ecore_x_e_vkbd_state_get(atom);
}