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()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.void sendEvent(byte propval) @propertySet `sendEvent` field. Params: propval = true if the event was sent explicitly.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.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.uint isModifier() @propertyGet `isModifier` field. Returns: a flag that indicates if @hardware_keycode is mapped to a modifier. Since 2.10void isModifier(uint propval) @propertySet `isModifier` field. Params: propval = a flag that indicates if @hardware_keycode is mapped to a modifier. Since 2.10