DAS  3.1.6 - 18/09/2017
Data Fields
MKeyEvent Struct Reference

#include <Mguidefs.h>

+ Collaboration diagram for MKeyEvent:

Data Fields

unsigned int keycode
 Code for the pressed key. More...
 
unsigned int state
 Bitmask of the state of modifier keys (ShiftMask, LockMask, ControlMask, AltMask) More...
 
int type
 Event type (E_KEY_PRESS) More...
 
Window window
 Window which the event is directed to. More...
 

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.

Definition at line 533 of file Mguidefs.h.

Field Documentation

§ keycode

unsigned int MKeyEvent::keycode

§ state

unsigned int MKeyEvent::state

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

Definition at line 539 of file Mguidefs.h.

§ type

int MKeyEvent::type

Event type (E_KEY_PRESS)

Definition at line 535 of file Mguidefs.h.

§ window

Window MKeyEvent::window

Window which the event is directed to.

Definition at line 537 of file Mguidefs.h.


The documentation for this struct was generated from the following file:
______________________________________________________________________________________
Generated on Mon Sep 18 2017 11:47:15 for DAS - Rel. 3.1.6 - 18/09/2017.