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: protected:
void init(); virtual void init();
void registerWindow(); virtual void registerWindow();
void unregisterWindow(); virtual void unregisterWindow();
bool registerWindowProcedure(); virtual bool registerWindowProcedure();
bool unregisterWindowProcedure(); virtual bool unregisterWindowProcedure();
HGLRC createContextImplementation(); virtual HGLRC createContextImplementation();
bool createWindow(); virtual bool createWindow();
bool setWindow( HWND handle ); virtual bool setWindow( HWND handle );
void destroyWindow( bool deleteNativeWindow = true ); virtual void destroyWindow( bool deleteNativeWindow = true );
void recreateWindow(); virtual void recreateWindow();
bool determineWindowPositionAndStyle( unsigned int screenNum, virtual bool determineWindowPositionAndStyle( unsigned int screenNum,
int clientAreaX, int clientAreaX,
int clientAreaY, int clientAreaY,
unsigned int clientAreaWidth, unsigned int clientAreaWidth,
@ -136,15 +136,15 @@ class OSGVIEWER_EXPORT GraphicsWindowWin32 : public osgViewer::GraphicsWindow, p
unsigned int& style, unsigned int& style,
unsigned int& extendedStyle ); 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; HCURSOR _currentCursor;