Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound 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:

VDKAnyEvent List of all members.

Public Methods


Detailed Description

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


Member Function Documentation

const char * VDKKeyEvent::CString   const
 

Basically the same as.

See also:
Modifier()

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()

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.

See also:
Key()


The documentation for this class was generated from the following files:
Generated on Wed Apr 17 13:24:58 2002 for vdk 2.0.1 by doxygen1.2.15