libdom
|
Go to the source code of this file.
Macros | |
#define | dom_keyboard_event_create(n) _dom_keyboard_event_create((dom_keyboard_event **) (n)) |
#define | dom_keyboard_event_get_key(e, i) |
#define | dom_keyboard_event_get_code(e, i) |
#define | dom_keyboard_event_get_location(e, l) |
#define | dom_keyboard_event_get_ctrl_key(e, k) |
#define | dom_keyboard_event_get_shift_key(e, k) |
#define | dom_keyboard_event_get_alt_key(e, k) |
#define | dom_keyboard_event_get_meta_key(e, k) |
#define | dom_keyboard_event_get_modifier_state(e, m, s) |
#define | dom_keyboard_event_init(e, t, b, c, v, kk, kc, kl, ck, sk, ak, mk, r, ic) |
#define | dom_keyboard_event_init_ns(e, n, t, b, c, v, ki, kl, m) |
Typedefs | |
typedef struct dom_keyboard_event | dom_keyboard_event |
Enumerations | |
enum | dom_key_location { DOM_KEY_LOCATION_STANDARD = 0 , DOM_KEY_LOCATION_LEFT = 1 , DOM_KEY_LOCATION_RIGHT = 2 , DOM_KEY_LOCATION_NUMPAD = 3 } |
#define dom_keyboard_event_create | ( | n | ) | _dom_keyboard_event_create((dom_keyboard_event **) (n)) |
#define dom_keyboard_event_get_alt_key | ( | e, | |
k ) |
#define dom_keyboard_event_get_code | ( | e, | |
i ) |
#define dom_keyboard_event_get_ctrl_key | ( | e, | |
k ) |
#define dom_keyboard_event_get_key | ( | e, | |
i ) |
#define dom_keyboard_event_get_location | ( | e, | |
l ) |
#define dom_keyboard_event_get_meta_key | ( | e, | |
k ) |
#define dom_keyboard_event_get_modifier_state | ( | e, | |
m, | |||
s ) |
#define dom_keyboard_event_get_shift_key | ( | e, | |
k ) |
#define dom_keyboard_event_init | ( | e, | |
t, | |||
b, | |||
c, | |||
v, | |||
kk, | |||
kc, | |||
kl, | |||
ck, | |||
sk, | |||
ak, | |||
mk, | |||
r, | |||
ic ) |
#define dom_keyboard_event_init_ns | ( | e, | |
n, | |||
t, | |||
b, | |||
c, | |||
v, | |||
ki, | |||
kl, | |||
m ) |
typedef struct dom_keyboard_event dom_keyboard_event |
enum dom_key_location |
dom_exception _dom_keyboard_event_create | ( | dom_keyboard_event ** | evt | ) |
dom_exception _dom_keyboard_event_get_alt_key | ( | dom_keyboard_event * | evt, |
bool * | key ) |
Get the alt key state
evt | The Event object |
key | Whether the Alt key is pressed down |
dom_exception _dom_keyboard_event_get_code | ( | dom_keyboard_event * | evt, |
dom_string ** | code ) |
Get the code
evt | The Event object |
code | The returned code |
dom_exception _dom_keyboard_event_get_ctrl_key | ( | dom_keyboard_event * | evt, |
bool * | key ) |
Get the ctrl key state
evt | The Event object |
key | Whether the Control key is pressed down |
dom_exception _dom_keyboard_event_get_key | ( | dom_keyboard_event * | evt, |
dom_string ** | key ) |
Get the key
evt | The Event object |
key | The returned key |
dom_exception _dom_keyboard_event_get_location | ( | dom_keyboard_event * | evt, |
dom_key_location * | location ) |
Get the key location
evt | The Event object |
location | The returned key location |
dom_exception _dom_keyboard_event_get_meta_key | ( | dom_keyboard_event * | evt, |
bool * | key ) |
Get the meta key state
evt | The Event object |
key | Whether the Meta key is pressed down |
dom_exception _dom_keyboard_event_get_modifier_state | ( | dom_keyboard_event * | evt, |
dom_string * | m, | ||
bool * | state ) |
Query the state of a modifier using a key identifier
evt | The event object |
ml | The modifier identifier, such as "Alt", "Control", "Meta", "AltGraph", "CapsLock", "NumLock", "Scroll", "Shift". |
state | Whether the modifier key is pressed |
dom_exception _dom_keyboard_event_get_shift_key | ( | dom_keyboard_event * | evt, |
bool * | key ) |
Get the shift key state
evt | The Event object |
key | Whether the Shift key is pressed down |
dom_exception _dom_keyboard_event_init | ( | dom_keyboard_event * | evt, |
dom_string * | type, | ||
bool | bubble, | ||
bool | cancelable, | ||
struct dom_abstract_view * | view, | ||
dom_string * | key, | ||
dom_string * | code, | ||
dom_key_location | location, | ||
bool | ctrl_key, | ||
bool | shift_key, | ||
bool | alt_key, | ||
bool | meta_key, | ||
bool | repeat, | ||
bool | is_composing ) |
Initialise the keyboard event with namespace
evt | The Event object |
type | The event's type |
bubble | Whether this is a bubbling event |
cancelable | Whether this is a cancelable event |
view | The AbstractView associated with this event |
key | The key identifier of pressed key |
code | The code identifier of pressed key |
location | The key location of the preesed key |
ctrl_key | Whether the ctrl_key is pressed |
shift_key | Whether the shift_key is pressed |
alt_key | Whether the alt_key is pressed |
meta_key | Whether the ctrl_key is pressed |
repeat | Whether this is a repeat press from a held key |
is_composing | Whether the input is being composed |
dom_exception _dom_keyboard_event_init_ns | ( | dom_keyboard_event * | evt, |
dom_string * | namespace, | ||
dom_string * | type, | ||
bool | bubble, | ||
bool | cancelable, | ||
struct dom_abstract_view * | view, | ||
dom_string * | key, | ||
dom_string * | code, | ||
dom_key_location | location, | ||
bool | ctrl_key, | ||
bool | shift_key, | ||
bool | alt_key, | ||
bool | meta_key, | ||
bool | repeat, | ||
bool | is_composing ) |
Initialise the keyboard event with namespace
evt | The Event object |
namespace | The namespace of this event |
type | The event's type |
bubble | Whether this is a bubbling event |
cancelable | Whether this is a cancelable event |
view | The AbstractView associated with this event |
key | The key identifier of pressed key |
code | The code identifier of pressed key |
location | The key location of the preesed key |
ctrl_key | Whether the ctrl_key is pressed |
shift_key | Whether the shift_key is pressed |
alt_key | Whether the alt_key is pressed |
meta_key | Whether the ctrl_key is pressed |
repeat | Whether this is a repeat press from a held key |
is_composing | Whether the input is being composed |