1SoXtDevice(3IV)()                                            SoXtDevice(3IV)()
2
3
4

NAME

6       SoXtDevice — abstract base class device for use with the SoXtRenderArea
7

INHERITS FROM

9       SoXtDevice
10

SYNOPSIS

12       #include <Inventor/Xt/devices/SoXtDevice.h>
13
14          Methods from class SoXtDevice:
15
16     virtual  void             enable(Widget  w,  XtEventHandler  f, XtPointer
17                                   data, Window win = NULL)
18     virtual void             disable(Widget w,  XtEventHandler  f,  XtPointer
19                                   data)
20     virtual const SoEvent *  translateEvent(XAnyEvent *xevent)
21     void                     setWindowSize(const SbVec2s &size)
22     const SbVec2s &          getWindowSize() const
23
24

DESCRIPTION

26       This  is  the abstract base class for devices in the Inventor Xt compo‐
27       nent and utility library. When a device is registered with an  SoXtRen‐
28       derArea,  the device is able to generate events in the render area win‐
29       dow.
30

METHODS

32     virtual void             enable(Widget  w,  XtEventHandler  f,  XtPointer
33                                   data, Window win = NULL)
34     virtual  void             disable(Widget  w,  XtEventHandler f, XtPointer
35                                   data)
36          Enable and disable the device for the passed widget.  When  enabled,
37          the  callback  function  f  will be invoked when events occur in the
38          widget. data is the clientData which will be passed.
39
40     virtual const SoEvent *  translateEvent(XAnyEvent *xevent)
41          This attempts to convert the passed X event into an SoEvent. If  the
42          event was not generated by this device, then NULL is returned.
43
44     void                     setWindowSize(const SbVec2s &size)
45     const SbVec2s &          getWindowSize() const
46          Set  and get the window size of the widget this device is registered
47          for. This allows the device to correctly convert  position  informa‐
48          tion from X window coordinates (origin at top left) to Inventor win‐
49          dow coordinates (origin at bottom left). (SoXtRenderArea will  auto‐
50          matically call this method for each device registered on it whenever
51          the window size changes.)
52
53

SEE ALSO

55       SoXtMouse, SoXtKeyboard, SoXtSpaceball, SoXtInputFocus, SoXtRenderArea
56
57
58
59
60                                                             SoXtDevice(3IV)()
Impressum