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__
65 typedef void SoXtEventHandler(Widget,
void *, XAnyEvent*,
bool *);
66 #endif // __COIN_SOWX__
70 #include <Inventor/SbLinear.h>
71 #include <Inventor/Xt/SoXtObject.h>
83 virtual void enable(Widget w, SoXtEventHandler * handler,
void * closure) = 0;
84 virtual void disable(Widget w, SoXtEventHandler * handler,
void * closure) = 0;
86 virtual const SoEvent * translateEvent(XAnyEvent* event) = 0;
88 void setWindowSize(
const SbVec2s size);
89 SbVec2s getWindowSize(
void)
const;
91 static void initClasses(
void);
96 void setEventPosition(SoEvent * event,
int x,
int y)
const;
97 static SbVec2s getLastEventPosition(
void);
99 void addEventHandler(Widget, SoXtEventHandler *,
void *);
100 void removeEventHandler(Widget, SoXtEventHandler *,
void *);
101 void invokeHandlers(XAnyEvent* event);
104 class SoXtDeviceP * pimpl;
105 friend class SoXtDeviceP;
110 #endif // !SOXT_DEVICE_H
The SoXtDevice class is the base class for the translation devices.
Definition: SoXtDevice.h:77
The SoXtObject class is the common superclass for all SoXt component classes.
Definition: SoXtObject.h:48