vdk 2.4.0
Public Member Functions | List of all members
VDKKeyEvent Class Reference

This class represents the data associated with a keypress or keyrelease event. More...

#include <sigc_events.h>

Inheritance diagram for VDKKeyEvent:
Inheritance graph
[legend]
Collaboration diagram for VDKKeyEvent:
Collaboration graph
[legend]

Public Member Functions

unsigned int Key () const
 Returns the corresponding id for this key as defined in gdkkeysyms.h. More...
 
unsigned int Modifier () const
 Tells you what modifier was pressed when this event was generated. More...
 
VDKString String () const
 Gives you the string-representation of pressed key if possible. More...
 
const char * CString () const
 Basically the same as. More...
 

Detailed Description

This class represents the data associated with a keypress or keyrelease event.

Member Function Documentation

§ CString()

const char * VDKKeyEvent::CString ( ) const

Basically the same as.

See also
Modifier()

§ Key()

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

See also
Modifier()

§ 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.

§ String()

VDKString VDKKeyEvent::String ( ) const

Gives you the string-representation of pressed key if possible.

See also
Key()

The documentation for this class was generated from the following files: