gtkc.gdktypes.GdkEventKey Struct Reference

List of all members.

Detailed Description

Describes a key press or key release event.

GdkEventTypetype; the type of the event (GDK_KEY_PRESS or GDK_KEY_RELEASE). GdkWindow*window; the window which received the event. gint8send_event; TRUE if the event was sent explicitly (e.g. using XSendEvent). guint32time; the time of the event in milliseconds. guintstate; a bit-mask representing the state of the modifier keys (e.g. Control, Shift and Alt) and the pointer buttons. See GdkModifierType. guintkeyval; the key that was pressed or released. See the <gdk/gdkkeysyms.h> header file for a complete list of GDK key codes. gintlength; the length of string. gchar*string; a string containing the 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 GtkIMContext), so this field is deprecated and should never be used. (gdk_unicode_to_keyval() provides a non-deprecated way of getting an approximate translation for a key.) The string is encoded in the encoding of the current locale (Note: this for backwards compatibility: strings in GTK+ and GDK are typically in UTF-8.) and NUL-terminated. In some cases, the translation of the key code will be a single NUL byte, in which case looking at length is necessary to distinguish it from the an empty translation. guint16hardware_keycode; the raw code of the key that was pressed or released. guint8group; the keyboard group. guintis_modifier:1; a flag that indicates if hardware_keycode is mapped to a


Public Attributes

GdkEventType type
GdkWindowwindow
byte sendEvent
uint time
uint state
uint keyval
int length
charstring
ushort hardwareKeycode
byte group
uint bitfield


Member Data Documentation

uint gtkc.gdktypes.GdkEventKey.bitfield

byte gtkc.gdktypes.GdkEventKey.group

ushort gtkc.gdktypes.GdkEventKey.hardwareKeycode

uint gtkc.gdktypes.GdkEventKey.keyval

int gtkc.gdktypes.GdkEventKey.length

byte gtkc.gdktypes.GdkEventKey.sendEvent

uint gtkc.gdktypes.GdkEventKey.state

char* gtkc.gdktypes.GdkEventKey.string

uint gtkc.gdktypes.GdkEventKey.time

GdkEventType gtkc.gdktypes.GdkEventKey.type

GdkWindow* gtkc.gdktypes.GdkEventKey.window


SourceForge.net Logo DSource.org Logo digitalmars.com Logo