45#include <Inventor/Qt/SoQtBasic.h>
49typedef void SoQtEventHandler(QWidget*,
void *, QEvent*,
bool *);
52#include <X11/Intrinsic.h>
53typedef void SoQtEventHandler(QWidget*, XtPointer, XEvent *, Boolean *);
57typedef gint SoQtEventHandler(QWidget*, QEvent*, gpointer);
61typedef LRESULT SoQtEventHandler(QWidget*, UINT, WPARAM, LPARAM);
65typedef void SoQtEventHandler(QWidget*,
void *, QEvent*,
bool *);
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;
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;
The SoQtDevice class is the base class for the translation devices.
Definition SoQtDevice.h:77
virtual void disable(QWidget *w, SoQtEventHandler *handler, void *closure)=0
virtual const SoEvent * translateEvent(QEvent *event)=0
virtual void enable(QWidget *w, SoQtEventHandler *handler, void *closure)=0
The SoQtObject class is the common superclass for all SoQt component classes.
Definition SoQtObject.h:48