60#include <X11/Intrinsic.h>
132 inline void setEventPosition(
SoEvent *event,
float x,
float y)
const;
138 void setCommonEventProperties(
SoEvent *event,
139 Display* display,
Window root,
141 int x_root,
int y_root,
142 Time time,
unsigned int state);
151SoXtDevice::setEventPosition(
SoEvent *event,
float x,
float y)
const
153 event->setPosition(
SbVec2f(x, (((
float)winSize[1]) - 1.f) -
y));
Base class for all events.
Abstract base class for input devices.
virtual void enable(SoWidget w, XtEventHandler f, XtPointer data, Window win=(Window) NULL)=0
Enables the device for the passed widget.
virtual const SoEvent * translateEvent(XAnyEvent *xevent)=0
Attempts to convert the passed event into an SoEvent.
const SbVec2s & getWindowSize() const
Gets the size of the window this device is registered for.
virtual void disable(SoWidget w, XtEventHandler f, XtPointer data)=0
Disables the device for the passed widget.
void setWindowSize(const SbVec2s &s)
Sets the size of the window this device is registered for.