Added support for getting all windows and hiding the cursor

This commit is contained in:
Robert Osfield
2007-01-02 12:50:57 +00:00
parent db7df9d6d4
commit d068f7025a
7 changed files with 88 additions and 17 deletions

View File

@@ -89,6 +89,21 @@ class GraphicsWindowX11 : public osgViewer::GraphicsWindow
// Override from GUIActionAdapter
virtual void requestWarpPointer(float x,float y);
/** Switch on/off the cursor.*/
virtual void useCursor(bool cursorOn);
public:
// X11 specific aces functions
Display* getDisplay() { return _display; }
Window& getParent() { return _parent; }
Window& getWindow() { return _window; }
Cursor& getDefaultCursor() { return _defaultCursor; }
Cursor& getNullCursor() { return _nullCursor; }
Cursor& getCurrentCursor() { return _nullCursor; }
protected:
bool createVisualInfo();