Changeset 9546 in orxonox.OLD for branches/proxy/src/lib/gui/gl/glgui_handler.h
- Timestamp:
- Jul 28, 2006, 11:13:00 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/gui/gl/glgui_handler.h
r9240 r9546 12 12 namespace OrxGui 13 13 { 14 14 // FORWARD DECLARATION 15 15 class GLGuiCursor; 16 16 17 // FORWARD DECLARATION18 17 19 18 //! A singleton class for the GLGui-Handler … … 22 21 23 22 public: 24 virtual ~GLGuiHandler(void);25 23 /** @returns a Pointer to the only object of this Class */ 26 24 inline static GLGuiHandler* getInstance(void) { if (!GLGuiHandler::singletonRef) GLGuiHandler::singletonRef = new GLGuiHandler(); return GLGuiHandler::singletonRef; }; 25 /** @brief deletes the instance if it exists */ 26 inline static void deleteInstance() { if (GLGuiHandler::singletonRef) delete GLGuiHandler::singletonRef; }; 27 27 28 28 void activateCursor(); … … 33 33 const Vector2D& cursorPositionAbs() const; 34 34 Vector2D cursorPositionRel(const GLGuiWidget* const widget) const; 35 36 const Vector2D& resolution() const { return this->_resolution; }; 35 37 36 38 void selectNext(); … … 48 50 private: 49 51 GLGuiHandler(void); 52 virtual ~GLGuiHandler(void); 50 53 static GLGuiHandler* singletonRef; 51 54 … … 53 56 bool isActive; 54 57 GLGuiCursor* _cursor; 58 Vector2D _resolution; 55 59 56 60 };
Note: See TracChangeset
for help on using the changeset viewer.