Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 28, 2006, 11:13:00 AM (18 years ago)
Author:
bensch
Message:

added a fixed positionBox, so that everything can be centered

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/gui/gl/glgui_handler.h

    r9240 r9546  
    1212namespace OrxGui
    1313{
    14 
     14 // FORWARD DECLARATION
    1515  class GLGuiCursor;
    1616
    17   // FORWARD DECLARATION
    1817
    1918  //! A singleton class for the GLGui-Handler
     
    2221
    2322  public:
    24     virtual ~GLGuiHandler(void);
    2523    /** @returns a Pointer to the only object of this Class */
    2624    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; };
    2727
    2828    void activateCursor();
     
    3333    const Vector2D& cursorPositionAbs() const;
    3434    Vector2D cursorPositionRel(const GLGuiWidget* const widget) const;
     35
     36    const Vector2D& resolution() const { return this->_resolution; };
    3537
    3638    void selectNext();
     
    4850  private:
    4951    GLGuiHandler(void);
     52    virtual ~GLGuiHandler(void);
    5053    static GLGuiHandler* singletonRef;
    5154
     
    5356    bool                 isActive;
    5457    GLGuiCursor*         _cursor;
     58    Vector2D             _resolution;
    5559
    5660  };
Note: See TracChangeset for help on using the changeset viewer.