From Jutta Sauer, "We added a raise window method to GraphicsWindow. And added two

implementations for Win32 and X11.

"
This commit is contained in:
Robert Osfield
2008-08-15 17:32:26 +00:00
parent b6886cdbb2
commit dceb3cbe88
5 changed files with 52 additions and 2 deletions

View File

@@ -89,6 +89,9 @@ class OSGVIEWER_EXPORT GraphicsWindow : public osg::GraphicsContext, public osgG
/** Get focus on if the pointer is in this window.*/
virtual void grabFocusIfPointerInWindow() { osg::notify(osg::NOTICE)<<"GraphicsWindow::grabFocusIfPointerInWindow(..) not implemented."<<std::endl; }
/** Raise the window to the top.*/
virtual void raiseWindow() { osg::notify(osg::NOTICE)<<"GraphicsWindow::raiseWindow(..) not implemented."<<std::endl; }
/** Mouse cursor types, the same ones already present with ancient glut ... */
enum MouseCursor {
InheritCursor,
@@ -241,6 +244,7 @@ class GraphicsWindowEmbedded : public GraphicsWindow
virtual void swapBuffersImplementation() {}
virtual void grabFocus() {}
virtual void grabFocusIfPointerInWindow() {}
virtual void raiseWindow() {}
};
struct GraphicsWindowFunctionProxy