| 1 |
NAME SoXtMouse "" "" { |
| 2 |
translates and reports events for the mouse} |
| 3 |
|
| 4 |
INCLUDE Xt/devices/SoXtMouse.h |
| 5 |
|
| 6 |
DEFINE { SO_XT_ALL_MOUSE_EVENTS |
| 7 |
(ButtonPressMask | ButtonReleaseMask | |
| 8 |
PointerMotionMask | ButtonMotionMask) } |
| 9 |
|
| 10 |
DESC { |
| 11 |
This class manages events generated by the mouse, including |
| 12 |
mouse motion (\cSoLocation2Event\.), and mouse button press |
| 13 |
and release events (\cSoMouseButtonEvent\.). |
| 14 |
} |
| 15 |
|
| 16 |
METHOD "" SoXtMouse(EventMask mask = SO_XT_ALL_MOUSE_EVENTS) {} |
| 17 |
METHOD "" ~SoXtMouse() { |
| 18 |
Constructor and destructor. To the constructor, pass |
| 19 |
which mouse events you are interested in as a bitwise OR |
| 20 |
of the following values: |
| 21 |
|
| 22 |
\pButtonPressMask \(em Mouse press events |
| 23 |
|
| 24 |
\pButtonReleaseMask \(em Mouse release events |
| 25 |
|
| 26 |
\pPointerMotionMask \(em Mouse motion with no buttons |
| 27 |
|
| 28 |
\pButtonMotionMask \(em Mouse motion with buttons pressed |
| 29 |
|
| 30 |
\pOr simply pass the defined value SO_XT_ALL_MOUSE_EVENTS |
| 31 |
for all mouse events. The device will only report events |
| 32 |
of this type for the widget it is enabled on. |
| 33 |
} |
| 34 |
|
| 35 |
ALSO { SoXtDevice, SoLocation2Event, SoMouseButtonEvent } |