36 #include <Inventor/Qt/SoQtBasic.h>
40 typedef void SoQtEventHandler(QWidget *,
void *, QEvent *,
bool *);
41 #endif // __COIN_SOQT__
43 #include <X11/Intrinsic.h>
44 typedef void SoQtEventHandler(QWidget *, XtPointer, XEvent *, Boolean *);
45 #endif // __COIN_SOXT__
48 typedef gint SoQtEventHandler(QWidget *, QEvent *, gpointer);
49 #endif // __COIN_SOGTK__
52 typedef LRESULT SoQtEventHandler(QWidget *, UINT, WPARAM, LPARAM);
53 #endif // __COIN_SOWIN__
57 #include <Inventor/SbLinear.h>
58 #include <Inventor/Qt/SoQtObject.h>
70 virtual void enable(QWidget * w, SoQtEventHandler * handler,
void * closure) = 0;
71 virtual void disable(QWidget * w, SoQtEventHandler * handler,
void * closure) = 0;
73 virtual const SoEvent * translateEvent(QEvent * event) = 0;
75 void setWindowSize(
const SbVec2s size);
76 SbVec2s getWindowSize(
void)
const;
78 static void initClasses(
void);
83 void setEventPosition(SoEvent * event,
int x,
int y)
const;
84 static SbVec2s getLastEventPosition(
void);
86 void addEventHandler(QWidget *, SoQtEventHandler *,
void *);
87 void removeEventHandler(QWidget *, SoQtEventHandler *,
void *);
88 void invokeHandlers(QEvent * event);
91 class SoQtDeviceP * pimpl;
92 friend class SoQtDeviceP;
97 #endif // !SOQT_DEVICE_H
The SoQtObject class is the common superclass for all SoQt component classes.The purpose of making th...
Definition: SoQtObject.h:39
The SoQtDevice class is the base class for the translation devices.The SoQt device classes provide gl...
Definition: SoQtDevice.h:64