| 1 |
NAME SoXtKeyboard SoXtKbd "" { |
| 2 |
translates and reports events for the keyboard} |
| 3 |
|
| 4 |
INCLUDE Xt/devices/SoXtKeyboard.h |
| 5 |
|
| 6 |
DEFINE { SO_XT_ALL_KEYBOARD_EVENTS (KeyPressMask | KeyReleaseMask) } |
| 7 |
|
| 8 |
DESC { |
| 9 |
This class manages events generated by the keyboard, including |
| 10 |
key press and release events (\cSoKeyboardEvent\.). |
| 11 |
} |
| 12 |
|
| 13 |
METHOD "" SoXtKeyboard(EventMask mask = SO_XT_ALL_KEYBOARD_EVENTS) {} |
| 14 |
METHOD "" ~SoXtKeyboard() { |
| 15 |
Constructor and destructor. To the constructor, pass |
| 16 |
which keyboard events you are interested in as a bitwise OR |
| 17 |
of the following values: |
| 18 |
|
| 19 |
\pKeyPressMask \(em Key press events |
| 20 |
\pKeyReleaseMask \(em Key release events |
| 21 |
|
| 22 |
\pOr simply pass the defined value SO_XT_ALL_KEYBOARD_EVENTS |
| 23 |
for all keyboard events. The device will only report events |
| 24 |
of this type for the widget it is enabled on. |
| 25 |
} |
| 26 |
|
| 27 |
ALSO { SoXtDevice, SoKeyboardEvent } |