Made protected methods virtual to allow subclassing to customize more aspects of the window setup.

This commit is contained in:
Robert Osfield 2014-01-22 17:29:44 +00:00
parent 4fef6a3c2f
commit 405cb0d828

View File

@ -108,22 +108,22 @@ class OSGVIEWER_EXPORT GraphicsWindowWin32 : public osgViewer::GraphicsWindow, p
protected:
void init();
virtual void init();
void registerWindow();
void unregisterWindow();
virtual void registerWindow();
virtual void unregisterWindow();
bool registerWindowProcedure();
bool unregisterWindowProcedure();
virtual bool registerWindowProcedure();
virtual bool unregisterWindowProcedure();
HGLRC createContextImplementation();
bool createWindow();
bool setWindow( HWND handle );
virtual HGLRC createContextImplementation();
virtual bool createWindow();
virtual bool setWindow( HWND handle );
void destroyWindow( bool deleteNativeWindow = true );
void recreateWindow();
virtual void destroyWindow( bool deleteNativeWindow = true );
virtual void recreateWindow();
bool determineWindowPositionAndStyle( unsigned int screenNum,
virtual bool determineWindowPositionAndStyle( unsigned int screenNum,
int clientAreaX,
int clientAreaY,
unsigned int clientAreaWidth,
@ -136,15 +136,15 @@ class OSGVIEWER_EXPORT GraphicsWindowWin32 : public osgViewer::GraphicsWindow, p
unsigned int& style,
unsigned int& extendedStyle );
bool setPixelFormat();
virtual bool setPixelFormat();
void adaptKey( WPARAM wParam, LPARAM lParam, int& keySymbol, unsigned int& modifierMask, int& unmodifiedKeySymbol );
virtual void adaptKey( WPARAM wParam, LPARAM lParam, int& keySymbol, unsigned int& modifierMask, int& unmodifiedKeySymbol );
void transformMouseXY(float& x, float& y);
virtual void transformMouseXY(float& x, float& y);
void setCursorImpl(MouseCursor cursor);
virtual void setCursorImpl(MouseCursor cursor);
HCURSOR getOrCreateCursor(MouseCursor mouseShape);
virtual HCURSOR getOrCreateCursor(MouseCursor mouseShape);
HCURSOR _currentCursor;