gdk.event_key
Module for [EventKey] class
class EventKey
Types 1
classEventKey
Describes a key press or key release event.
Fields
GdkEventKey _cInstanceMethods
void * _cPtr() nothrowgdk.types.EventType type() @property nothrowGet `type` field. Returns: the type of the event ([gdk.types.EventType.KeyPress] or [gdk.types.EventType.KeyRelease]).void type(gdk.types.EventType propval) @property nothrowSet `type` field. Params: propval = the type of the event ([gdk.types.EventType.KeyPress] or [gdk.types.EventType.KeyRelease]).gdk.window.Window window() @property nothrowGet `window` field. Returns: the window which received the event.void window(gdk.window.Window propval) @property nothrowSet `window` field. Params: propval = the window which received the event.byte sendEvent() @property nothrowGet `sendEvent` field. Returns: true if the event was sent explicitly.void sendEvent(byte propval) @property nothrowSet `sendEvent` field. Params: propval = true if the event was sent explicitly.void time(uint propval) @property nothrowSet `time` field. Params: propval = the time of the event in milliseconds.gdk.types.ModifierType state() @property nothrowGet `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) @property nothrowSet `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() @property nothrowGet `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) @property nothrowSet `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.void length(int propval) @property nothrowSet `length` field. Params: propval = the length of @string.string string_() @property nothrowGet `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) @property nothrowSet `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() @property nothrowGet `hardwareKeycode` field. Returns: the raw code of the key that was pressed or released.void hardwareKeycode(ushort propval) @property nothrowSet `hardwareKeycode` field. Params: propval = the raw code of the key that was pressed or released.uint isModifier() @property nothrowGet `isModifier` field. Returns: a flag that indicates if @hardware_keycode is mapped to a modifier. Since 2.10void isModifier(uint propval) @property nothrowSet `isModifier` field. Params: propval = a flag that indicates if @hardware_keycode is mapped to a modifier. Since 2.10