| 1 |
NAME SoButtonEvent SoBtnEv SO_BTN_EV_ { base class for all button events } |
| 2 |
|
| 3 |
INCLUDE events/SoButtonEvent.h |
| 4 |
|
| 5 |
DESC { \cSoButtonEvent\. represents generic button press |
| 6 |
and release events in the Inventor event model. It is the base class |
| 7 |
for device-specific button events, namely |
| 8 |
\cSoKeyboardEvent\., \cSoMouseButtonEvent\., and |
| 9 |
\cSoSpaceballButtonEvent\.. |
| 10 |
This class stores the down/up state of the button |
| 11 |
when the event occurred. |
| 12 |
} |
| 13 |
|
| 14 |
ENUM State { |
| 15 |
UP "Button up event", |
| 16 |
DOWN "Button down event", |
| 17 |
UNKNOWN "Button in unknown state" |
| 18 |
} |
| 19 |
|
| 20 |
METHOD "" SoButtonEvent() { Constructor. } |
| 21 |
|
| 22 |
METHOD "" static SoType getClassTypeId() { |
| 23 |
Return the type id for the \cSoButtonEvent\. class. |
| 24 |
} |
| 25 |
|
| 26 |
BEGIN C++ |
| 27 |
METHOD "" void setState(SoButtonEvent::State s) {} |
| 28 |
METHOD "" SoButtonEvent::State getState() const |
| 29 |
{ Set and get the state of the button. } |
| 30 |
END |
| 31 |
BEGIN C |
| 32 |
METHOD "" void setState(SoButtonEventState s) {} |
| 33 |
METHOD "" SoButtonEventState getState() const |
| 34 |
{ Set and get the state of the button. } |
| 35 |
END |
| 36 |
|
| 37 |
ALSO { |
| 38 |
SoEvent, SoKeyboardEvent, SoLocation2Event, SoMotion3Event, |
| 39 |
SoMouseButtonEvent, SoSpaceballButtonEvent, |
| 40 |
SoHandleEventAction, SoEventCallback, SoSelection, SoInteraction, |
| 41 |
SoXtDevice } |
| 42 |
|
| 43 |
|
| 44 |
|