| 1 |
NAME SoXtInputFocus SoXtInFocus "" { |
| 2 |
reports input focus change events} |
| 3 |
|
| 4 |
INCLUDE Xt/devices/SoXtInputFocus.h |
| 5 |
|
| 6 |
DEFINE { SO_XT_ALL_FOCUS_EVENTS (EnterWindowMask | LeaveWindowMask) } |
| 7 |
|
| 8 |
DESC { |
| 9 |
This class reports input focus change events (i.e. when the |
| 10 |
cursor crosses into or out of the window). There are no input focus |
| 11 |
events in Inventor, so this always returns NULL when asked to translate |
| 12 |
events. When this class is registered on a render area, |
| 13 |
the render area will receive X input focus change events. |
| 14 |
(This class is extensively employed by the viewer classes.) |
| 15 |
} |
| 16 |
|
| 17 |
METHOD "" SoXtInputFocus(EventMask mask = SO_XT_ALL_FOCUS_EVENTS) {} |
| 18 |
METHOD "" ~SoXtInputFocus() { |
| 19 |
Constructor and destructor. To the constructor, pass |
| 20 |
which input focus events you are interested in as a bitwise OR |
| 21 |
of the following values: |
| 22 |
|
| 23 |
\pEnterWindowMask \(em Input focus entered the window |
| 24 |
|
| 25 |
\pLeaveWindowMask \(em Input focus left the window |
| 26 |
|
| 27 |
\pOr simply pass the defined value SO_XT_ALL_FOCUS_EVENTS |
| 28 |
for all input focus events. |
| 29 |
} |
| 30 |
|
| 31 |
ALSO { SoXtDevice } |