1SoXtInputFocus(3IV)() SoXtInputFocus(3IV)()
2
3
4
6 SoXtInputFocus — reports input focus change events
7
9 SoXtDevice > SoXtInputFocus
10
12 #include <Inventor/Xt/devices/SoXtInputFocus.h>
13
14 #define SO_XT_ALL_FOCUS_EVENTS (EnterWindowMask | LeaveWindowMask)
15
16 Methods from class SoXtInputFocus:
17
18 SoXtInputFocus(EventMask mask =
19 SO_XT_ALL_FOCUS_EVENTS)
20 ~SoXtInputFocus()
21
22 Methods from class SoXtDevice:
23
24 virtual void enable(Widget w, XtEventHandler f, XtPointer
25 data, Window win = NULL)
26 virtual void disable(Widget w, XtEventHandler f, XtPointer
27 data)
28 virtual const SoEvent * translateEvent(XAnyEvent *xevent)
29 void setWindowSize(const SbVec2s &size)
30 const SbVec2s & getWindowSize() const
31
32
34 This class reports input focus change events (i.e. when the cursor
35 crosses into or out of the window). There are no input focus events in
36 Inventor, so this always returns NULL when asked to translate events.
37 When this class is registered on a render area, the render area will
38 receive X input focus change events. (This class is extensively
39 employed by the viewer classes.)
40
42 SoXtInputFocus(EventMask mask =
43 SO_XT_ALL_FOCUS_EVENTS)
44 ~SoXtInputFocus()
45 Constructor and destructor. To the constructor, pass which input
46 focus events you are interested in as a bitwise OR of the following
47 values:
48
49 EnterWindowMask — Input focus entered the window
50
51 LeaveWindowMask — Input focus left the window
52
53 Or simply pass the defined value SO_XT_ALL_FOCUS_EVENTS for all
54 input focus events.
55
56
58 SoXtDevice
59
60
61
62
63 SoXtInputFocus(3IV)()