Main Page   Modules   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

MKeyEvent Struct Reference
[MGui Events]

Keyboard event. More...


Data Fields

int type
 Event type (E_KEY_PRESS).

Window window
 Window which the event is directed to.

unsigned int state
 Bitmask of the state of modifier keys (ShiftMask, LockMask, ControlMask, AltMask).

unsigned int keycode
 Code for the pressed key.


Detailed Description

Keyboard event.

The windowing system generates this event as the user presses a key in the keyboard. The event is bound, via field window, to the top level window of the application currently owning the input focus. The event is passed to the SHELL object bound to the focused window and then routed to the MGui object that actually owns the input focus.

It's possible to send directly this event to an MGui object, via MDispatchObjEvent() or CmObject::sendEvent, to simulate key presses forcing an object to act consequently. In this case, the window field is not relevant and can be set to anything. Other fields should instead be set to correct values.


Field Documentation

unsigned int MKeyEvent::keycode
 

Code for the pressed key.

unsigned int MKeyEvent::state
 

Bitmask of the state of modifier keys (ShiftMask, LockMask, ControlMask, AltMask).

int MKeyEvent::type
 

Event type (E_KEY_PRESS).

Window MKeyEvent::window
 

Window which the event is directed to.


Generated on Sun Jun 29 13:03:08 2003 for MGui API by doxygen1.3-rc2