45 #include <Inventor/Win/SoWinBasic.h> 49 typedef void SoWinEventHandler(HWND,
void *, MSG*,
bool *);
50 #endif // __COIN_SOQT__ 52 #include <X11/Intrinsic.h> 53 typedef void SoWinEventHandler(HWND, XtPointer, XEvent *, Boolean *);
54 #endif // __COIN_SOXT__ 57 typedef gint SoWinEventHandler(HWND, MSG*, gpointer);
58 #endif // __COIN_SOGTK__ 61 typedef LRESULT SoWinEventHandler(HWND, UINT, WPARAM, LPARAM);
62 #endif // __COIN_SOWIN__ 66 #include <Inventor/SbLinear.h> 67 #include <Inventor/Win/SoWinObject.h> 79 virtual void enable(HWND w, SoWinEventHandler * handler,
void * closure) = 0;
80 virtual void disable(HWND w, SoWinEventHandler * handler,
void * closure) = 0;
82 virtual const SoEvent * translateEvent(MSG* event) = 0;
84 void setWindowSize(
const SbVec2s size);
85 SbVec2s getWindowSize(
void)
const;
87 static void initClasses(
void);
92 void setEventPosition(
SoEvent * event,
int x,
int y)
const;
93 static SbVec2s getLastEventPosition(
void);
95 void addEventHandler(HWND, SoWinEventHandler *,
void *);
96 void removeEventHandler(HWND, SoWinEventHandler *,
void *);
97 void invokeHandlers(MSG* event);
100 class SoWinDeviceP * pimpl;
101 friend class SoWinDeviceP;
106 #endif // !SOWIN_DEVICE_H The SoWinObject class is the common superclass for all SoWin component classes.
Definition: SoWinObject.h:48
The SoWinDevice class is the base class for the translation devices.
Definition: SoWinDevice.h:73