vdk 2.4.0
|
This class represents the data associated with a keypress or keyrelease event. More...
#include <sigc_events.h>
This class represents the data associated with a keypress or keyrelease event.
const char * VDKKeyEvent::CString | ( | ) | const |
Basically the same as.
unsigned int VDKKeyEvent::Key | ( | ) | const |
Returns the corresponding id for this key as defined in gdkkeysyms.h.
Usefull for keys which don't have a string representation. For example, when key 'a' is pressed you get the string "a" and the id Gdk_a, but when you press on backspace you get the string "" (as there is no such representation) and id Gdk_BackSpace. Note that modifiers are handled by Modifier
unsigned int VDKKeyEvent::Modifier | ( | ) | const |
Tells you what modifier was pressed when this event was generated.
The modifiers are defined in enum GdkModifierType in gdktypes.h. You will get the or-ed vaule of all pressed modifiers.
VDKString VDKKeyEvent::String | ( | ) | const |
Gives you the string-representation of pressed key if possible.