45 #include <Inventor/Xt/SoXtBasic.h> 49 typedef void SoXtEventHandler(Widget,
void *, XAnyEvent*,
bool *);
50 #endif // __COIN_SOQT__ 52 #include <X11/Intrinsic.h> 53 typedef void SoXtEventHandler(Widget, XtPointer, XEvent *, Boolean *);
54 #endif // __COIN_SOXT__ 57 typedef gint SoXtEventHandler(Widget, XAnyEvent*, gpointer);
58 #endif // __COIN_SOGTK__ 61 typedef LRESULT SoXtEventHandler(Widget, UINT, WPARAM, LPARAM);
62 #endif // __COIN_SOWIN__ 66 #include <Inventor/SbLinear.h> 67 #include <Inventor/Xt/SoXtObject.h> 79 virtual void enable(Widget w, SoXtEventHandler * handler,
void * closure) = 0;
80 virtual void disable(Widget w, SoXtEventHandler * handler,
void * closure) = 0;
82 virtual const SoEvent * translateEvent(XAnyEvent* event) = 0;
84 void setWindowSize(
const SbVec2s size);
85 SbVec2s getWindowSize(
void)
const;
87 static void initClasses(
void);
92 void setEventPosition(SoEvent * event,
int x,
int y)
const;
93 static SbVec2s getLastEventPosition(
void);
95 void addEventHandler(Widget, SoXtEventHandler *,
void *);
96 void removeEventHandler(Widget, SoXtEventHandler *,
void *);
97 void invokeHandlers(XAnyEvent* event);
100 class SoXtDeviceP * pimpl;
101 friend class SoXtDeviceP;
106 #endif // !SOXT_DEVICE_H The SoXtDevice class is the base class for the translation devices.
Definition: SoXtDevice.h:73
The SoXtObject class is the common superclass for all SoXt component classes.
Definition: SoXtObject.h:48