gdk.event_key

Module for [EventKey] class

class EventKey

Types 1

Describes a key press or key release event.

Fields
GdkEventKey _cInstance
Methods
void * _cPtr()
gdk.types.EventType type() @propertyGet `type` field. Returns: the type of the event ([gdk.types.EventType.KeyPress] or [gdk.types.EventType.KeyRelease]).
void type(gdk.types.EventType propval) @propertySet `type` field. Params: propval = the type of the event ([gdk.types.EventType.KeyPress] or [gdk.types.EventType.KeyRelease]).
gdk.window.Window window() @propertyGet `window` field. Returns: the window which received the event.
void window(gdk.window.Window propval) @propertySet `window` field. Params: propval = the window which received the event.
byte sendEvent() @propertyGet `sendEvent` field. Returns: true if the event was sent explicitly.
void sendEvent(byte propval) @propertySet `sendEvent` field. Params: propval = true if the event was sent explicitly.
uint time() @propertyGet `time` field. Returns: the time of the event in milliseconds.
void time(uint propval) @propertySet `time` field. Params: propval = the time of the event in milliseconds.
gdk.types.ModifierType state() @propertyGet `state` field. Returns: a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See #GdkModifierType.
void state(gdk.types.ModifierType propval) @propertySet `state` field. Params: propval = a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See #GdkModifierType.
uint keyval() @propertyGet `keyval` field. Returns: the key that was pressed or released. See the `gdk/gdkkeysyms.h` header file for a complete list of GDK key codes.
void keyval(uint propval) @propertySet `keyval` field. Params: propval = the key that was pressed or released. See the `gdk/gdkkeysyms.h` header file for a complete list of GDK key codes.
int length() @propertyGet `length` field. Returns: the length of @string.
void length(int propval) @propertySet `length` field. Params: propval = the length of @string.
string string_() @propertyGet `string_` field. Returns: a string containing an approximation of the text that would result from this keypress. The only correct way to handle text input of text is using input methods (see #G...
void string_(string propval) @propertySet `string_` field. Params: propval = a string containing an approximation of the text that would result from this keypress. The only correct way to handle text input of text is using input method...
ushort hardwareKeycode() @propertyGet `hardwareKeycode` field. Returns: the raw code of the key that was pressed or released.
void hardwareKeycode(ushort propval) @propertySet `hardwareKeycode` field. Params: propval = the raw code of the key that was pressed or released.
ubyte group() @propertyGet `group` field. Returns: the keyboard group.
void group(ubyte propval) @propertySet `group` field. Params: propval = the keyboard group.
uint isModifier() @propertyGet `isModifier` field. Returns: a flag that indicates if @hardware_keycode is mapped to a modifier. Since 2.10
void isModifier(uint propval) @propertySet `isModifier` field. Params: propval = a flag that indicates if @hardware_keycode is mapped to a modifier. Since 2.10
Constructors
this(void * ptr, Flag!"Take" take)