1SoXtMouse(3IV)() SoXtMouse(3IV)()
2
3
4
6 SoXtMouse — translates and reports events for the mouse
7
9 SoXtDevice > SoXtMouse
10
12 #include <Inventor/Xt/devices/SoXtMouse.h>
13
14 #define SO_XT_ALL_MOUSE_EVENTS
15 (ButtonPressMask | ButtonReleaseMask |
16 PointerMotionMask | ButtonMotionMask)
17
18 Methods from class SoXtMouse:
19
20 SoXtMouse(EventMask mask = SO_XT_ALL_MOUSE_EVENTS)
21 ~SoXtMouse()
22
23 Methods from class SoXtDevice:
24
25 virtual void enable(Widget w, XtEventHandler f, XtPointer
26 data, Window win = NULL)
27 virtual void disable(Widget w, XtEventHandler f, XtPointer
28 data)
29 virtual const SoEvent * translateEvent(XAnyEvent *xevent)
30 void setWindowSize(const SbVec2s &size)
31 const SbVec2s & getWindowSize() const
32
33
35 This class manages events generated by the mouse, including mouse
36 motion (SoLocation2Event), and mouse button press and release events
37 (SoMouseButtonEvent).
38
40 SoXtMouse(EventMask mask = SO_XT_ALL_MOUSE_EVENTS)
41 ~SoXtMouse()
42 Constructor and destructor. To the constructor, pass which mouse
43 events you are interested in as a bitwise OR of the following val‐
44 ues:
45
46 ButtonPressMask — Mouse press events
47
48 ButtonReleaseMask — Mouse release events
49
50 PointerMotionMask — Mouse motion with no buttons
51
52 ButtonMotionMask — Mouse motion with buttons pressed
53
54 Or simply pass the defined value SO_XT_ALL_MOUSE_EVENTS for all
55 mouse events. The device will only report events of this type for
56 the widget it is enabled on.
57
58
60 SoXtDevice, SoLocation2Event, SoMouseButtonEvent
61
62
63
64
65 SoXtMouse(3IV)()