45#include <Inventor/Gtk/SoGtkBasic.h>
49typedef void SoGtkEventHandler(GtkWidget*,
void *, GdkEvent*,
bool *);
52#include <X11/Intrinsic.h>
53typedef void SoGtkEventHandler(GtkWidget*, XtPointer, XEvent *, Boolean *);
57typedef gint SoGtkEventHandler(GtkWidget*, GdkEvent*, gpointer);
61typedef LRESULT SoGtkEventHandler(GtkWidget*, UINT, WPARAM, LPARAM);
65typedef void SoGtkEventHandler(GtkWidget*,
void *, GdkEvent*,
bool *);
70#include <Inventor/SbLinear.h>
71#include <Inventor/Gtk/SoGtkObject.h>
83 virtual void enable(GtkWidget* w, SoGtkEventHandler * handler,
void * closure) = 0;
84 virtual void disable(GtkWidget* w, SoGtkEventHandler * 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(GtkWidget*, SoGtkEventHandler *,
void *);
100 void removeEventHandler(GtkWidget*, SoGtkEventHandler *,
void *);
101 void invokeHandlers(GdkEvent* event);
104 class SoGtkDeviceP * pimpl;
105 friend class SoGtkDeviceP;
The SoGtkDevice class is the base class for the translation devices.
Definition SoGtkDevice.h:77
virtual void disable(GtkWidget *w, SoGtkEventHandler *handler, void *closure)=0
virtual const SoEvent * translateEvent(GdkEvent *event)=0
virtual void enable(GtkWidget *w, SoGtkEventHandler *handler, void *closure)=0
The SoGtkObject class is the common superclass for all SoGtk component classes.
Definition SoGtkObject.h:48