45 #include <Inventor/Qt/SoQtBasic.h> 49 typedef void SoQtEventHandler(QWidget*,
void *, QEvent*,
bool *);
50 #endif // __COIN_SOQT__ 52 #include <X11/Intrinsic.h> 53 typedef void SoQtEventHandler(QWidget*, XtPointer, XEvent *, Boolean *);
54 #endif // __COIN_SOXT__ 57 typedef gint SoQtEventHandler(QWidget*, QEvent*, gpointer);
58 #endif // __COIN_SOGTK__ 61 typedef LRESULT SoQtEventHandler(QWidget*, UINT, WPARAM, LPARAM);
62 #endif // __COIN_SOWIN__ 65 typedef void SoQtEventHandler(QWidget*,
void *, QEvent*,
bool *);
66 #endif // __COIN_SOWX__ 70 #include <Inventor/SbLinear.h> 71 #include <Inventor/Qt/SoQtObject.h> 83 virtual void enable(QWidget* w, SoQtEventHandler * handler,
void * closure) = 0;
84 virtual void disable(QWidget* w, SoQtEventHandler * handler,
void * closure) = 0;
86 virtual const SoEvent * translateEvent(QEvent* 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(QWidget*, SoQtEventHandler *,
void *);
100 void removeEventHandler(QWidget*, SoQtEventHandler *,
void *);
101 void invokeHandlers(QEvent* event);
104 class SoQtDeviceP * pimpl;
105 friend class SoQtDeviceP;
110 #endif // !SOQT_DEVICE_H The SoQtObject class is the common superclass for all SoQt component classes.
Definition: SoQtObject.h:48
The SoQtDevice class is the base class for the translation devices.
Definition: SoQtDevice.h:77