19#ifndef OSGVIEWER_GRAPHICSWINDOWWIN32
20#define OSGVIEWER_GRAPHICSWINDOWWIN32 1
37 virtual const char*
libraryName()
const {
return "osgViewer"; }
38 virtual const char*
className()
const {
return "GraphicsWindowWin32"; }
128 unsigned int clientAreaWidth,
129 unsigned int clientAreaHeight,
136 unsigned int& extendedStyle );
140 virtual void adaptKey( WPARAM wParam, LPARAM lParam,
int& keySymbol,
unsigned int& modifierMask,
int& unmodifiedKeySymbol );
The osgViewer library provides high level viewer functionality designed to make it easier to write a ...
GraphicsContext Traits object provides the specification of what type of graphics context is required...
Definition GraphicsContext:70
Object()
Construct an object.
Definition Object:69
Base class for providing reference counted objects.
Definition Referenced:44
Class to encapsulate platform-specific OpenGL context handle variables.
Definition GraphicsHandleWin32:41
int _windowOriginYToRealize
Definition GraphicsWindowWin32:163
virtual LRESULT handleNativeWindowingEvent(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
Handle a native (Win32) windowing event as received from the system.
int _windowOriginXToRealize
Definition GraphicsWindowWin32:162
virtual bool releaseContextImplementation()
Release the graphics context.
virtual void destroyWindow(bool deleteNativeWindow=true)
bool _initialized
Definition GraphicsWindowWin32:167
MouseCursor _appMouseCursor
Persist which mouse cursor was used before switching to the resize cursors.
Definition GraphicsWindowWin32:179
virtual void useCursor(bool)
Switch on/off the cursor.
virtual void setSyncToVBlank(bool on)
Set sync-to-vblank.
virtual bool setWindowDecorationImplementation(bool flag)
Set Window decoration.
unsigned int _windowHeightToRealize
Definition GraphicsWindowWin32:165
bool _ownsWindow
Definition GraphicsWindowWin32:171
GraphicsWindowWin32(osg::GraphicsContext::Traits *traits)
virtual bool valid() const
Return whether a valid and usable GraphicsContext has been created.
Definition GraphicsWindowWin32:40
std::map< std::pair< int, int >, bool > _keyMap
Definition GraphicsWindowWin32:183
virtual void setSwapGroup(bool on, GLuint group, GLuint barrier)
Set swap group.
bool _closeWindow
Definition GraphicsWindowWin32:172
virtual bool setWindow(HWND handle)
virtual void transformMouseXY(float &x, float &y)
bool _destroyWindow
Definition GraphicsWindowWin32:173
virtual bool createWindow()
virtual HGLRC createContextImplementation()
virtual bool makeCurrentImplementation()
Make this graphics context current.
virtual void grabFocusIfPointerInWindow()
Get focus on if the pointer is in this window.
bool _destroying
Definition GraphicsWindowWin32:174
virtual bool determineWindowPositionAndStyle(unsigned int screenNum, int clientAreaX, int clientAreaY, unsigned int clientAreaWidth, unsigned int clientAreaHeight, bool decorated, int &x, int &y, unsigned int &w, unsigned int &h, unsigned int &style, unsigned int &extendedStyle)
unsigned int _screenHeight
Definition GraphicsWindowWin32:160
virtual void swapBuffersImplementation()
Swap the front and back buffers.
virtual const char * className() const
return the name of the object's class type.
Definition GraphicsWindowWin32:38
bool _valid
Definition GraphicsWindowWin32:168
virtual void adaptKey(WPARAM wParam, LPARAM lParam, int &keySymbol, unsigned int &modifierMask, int &unmodifiedKeySymbol)
virtual bool unregisterWindowProcedure()
unsigned int _screenWidth
Definition GraphicsWindowWin32:159
unsigned int _windowWidthToRealize
Definition GraphicsWindowWin32:164
virtual const char * libraryName() const
return the name of the object's library.
Definition GraphicsWindowWin32:37
virtual bool realizeImplementation()
Realize the GraphicsContext.
virtual bool registerWindowProcedure()
virtual void raiseWindow()
Raise specified window.
int _screenOriginY
Definition GraphicsWindowWin32:158
bool _realized
Definition GraphicsWindowWin32:169
bool _applyWorkaroundForMultimonitorMultithreadNVidiaWin32Issues
Definition GraphicsWindowWin32:187
HCURSOR _currentCursor
Definition GraphicsWindowWin32:148
virtual void unregisterWindow()
int _screenOriginX
Definition GraphicsWindowWin32:157
WNDPROC _windowProcedure
Definition GraphicsWindowWin32:150
virtual HCURSOR getOrCreateCursor(MouseCursor mouseShape)
virtual bool checkEvents()
Check to see if any events have been generated.
MouseCursor _mouseCursor
Definition GraphicsWindowWin32:176
virtual void setCursor(MouseCursor cursor)
Set mouse cursor to a specific shape.
double _timeOfLastCheckEvents
Definition GraphicsWindowWin32:152
virtual bool isSameKindAs(const Object *object) const
Definition GraphicsWindowWin32:36
virtual bool isRealizedImplementation() const
Return true if the graphics context has been realized and is ready to use.
Definition GraphicsWindowWin32:46
virtual void requestWarpPointer(float x, float y)
Override from GUIActionAdapter.
virtual void setWindowName(const std::string &)
Set the name of the window.
virtual void setCursorImpl(MouseCursor cursor)
virtual bool setWindowRectangleImplementation(int x, int y, int width, int height)
Set the window's position and size.
std::set< int > _capturedMouseButtons
Definition GraphicsWindowWin32:185
std::map< MouseCursor, HCURSOR > _mouseCursorMap
Definition GraphicsWindowWin32:181
virtual void closeImplementation()
Close the graphics context.
virtual void grabFocus()
Get focus.
virtual bool setPixelFormat()
virtual void registerWindow()
WindowData(HWND window, bool installEventHandler=true)
Definition GraphicsWindowWin32:102
bool _installEventHandler
Definition GraphicsWindowWin32:106
HWND _hwnd
Definition GraphicsWindowWin32:105
Base class for providing Windowing API agnostic access to creating and managing graphics window and e...
Definition GraphicsWindow:43
MouseCursor
Mouse cursor types, the same ones already present with ancient glut ...
Definition GraphicsWindow:100
#define OSGVIEWER_EXPORT
Definition Export:40