Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/gui/gl_gui/glgui_handler.h @ 7779

Last change on this file since 7779 was 7779, checked in by bensch, 18 years ago

3088 linews changed :): trunk: namespaces

File size: 876 bytes
RevLine 
[4838]1/*!
2 * @file proto_singleton.h
[5405]3 * @brief Definition of the GLGuiHandler singleton Class
[3655]4*/
5
[5366]6#ifndef _GLGUI_HANDLER_H
7#define _GLGUI_HANDLER_H
[3655]8
[5388]9#include "event_listener.h"
[3655]10
[7779]11namespace OrxGui
12{
13  // FORWARD DECLARATION
[3655]14
[7779]15  //! A singleton class for the GLGui-Handler
16  class GLGuiHandler : public EventListener
17  {
[3655]18
[7779]19  public:
20    virtual ~GLGuiHandler(void);
21    /** @returns a Pointer to the only object of this Class */
22    inline static GLGuiHandler* getInstance(void) { if (!GLGuiHandler::singletonRef) GLGuiHandler::singletonRef = new GLGuiHandler();  return GLGuiHandler::singletonRef; };
[3655]23
[7779]24    void activate();
25    void deactivate();
[5388]26
27
[7779]28    virtual void process(const Event &event);
29    void draw();
30    void tick(float dt);
[5388]31
[7779]32  private:
33    GLGuiHandler(void);
34    static GLGuiHandler* singletonRef;
[5388]35
36
[7779]37    bool                 isActive;
38  };
39}
[3655]40
[5366]41#endif /* _GLGUI_HANDLER_H */
Note: See TracBrowser for help on using the repository browser.