26#ifndef _SO_WIN_DEVICE_
27#define _SO_WIN_DEVICE_
29#include <Inventor/Win/SoWinBeginStrict.h>
31#include <Inventor/Win/SoWinDef.h>
33#include <Inventor/SbLinear.h>
34#include <Inventor/events/SoEvent.h>
65 virtual void enable(SoWidget w, XtEventHandler f,
103 inline void setEventPosition(
SoEvent *event,
float x,
float y)
const;
105 SoWidget deviceWidget;
114SoWinDevice::setEventPosition(
SoEvent *event,
float x,
float y)
const
116 event->setPosition(
SbVec2f(x, (((
float)winSize[1]) - 1.f) - y));
119#include <Inventor/Win/SoWinEndStrict.h>
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.