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