26#ifndef _SO_WIN_DEVICE_
27#define _SO_WIN_DEVICE_
103 inline void setEventPosition(
SoEvent *event,
float x,
float y)
const;
114SoWinDevice::setEventPosition(
SoEvent *event,
float x,
float y)
const
116 event->setPosition(
SbVec2f(x, (((
float)winSize[1]) - 1.f) -
y));
Base class for all events.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Abstract base cl...
virtual void disable(SoWidget w, XtEventHandler f, XtPointer data)=0
Disables the device.
virtual const SoEvent * translateEvent(XAnyEvent *msg)=0
Attempts to convert the passed message into an SoEvent.
void setWindowSize(const SbVec2s &s)
Sets the size of the window this device is registered for.
const SbVec2s & getWindowSize() const
Gets the size of the window this device is registered for.
virtual void enable(SoWidget w, XtEventHandler f, XtPointer data, Window win=NULL)=0
Enables the device for the passed window handle.