Last change
on this file since 7919 was
7779,
checked in by bensch, 19 years ago
|
3088 linews changed : trunk: namespaces
|
File size:
762 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file glgui_mainwidget.h |
---|
3 | * @brief Definition of the glGui singleton Class |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _GLGUI_MAINWIDGET_H |
---|
7 | #define _GLGUI_MAINWIDGET_H |
---|
8 | |
---|
9 | #include "glgui_widget.h" |
---|
10 | |
---|
11 | namespace OrxGui |
---|
12 | { |
---|
13 | |
---|
14 | //! A default singleton class. |
---|
15 | class GLGuiMainWidget : public GLGuiWidget |
---|
16 | { |
---|
17 | |
---|
18 | public: |
---|
19 | virtual ~GLGuiMainWidget(void); |
---|
20 | /** @returns a Pointer to the only object of this Class */ |
---|
21 | inline static GLGuiMainWidget* getInstance(void) { if (!GLGuiMainWidget::singletonRef) GLGuiMainWidget::singletonRef = new GLGuiMainWidget(); return GLGuiMainWidget::singletonRef; }; |
---|
22 | |
---|
23 | virtual void update() {}; |
---|
24 | virtual void draw() const {}; |
---|
25 | |
---|
26 | private: |
---|
27 | GLGuiMainWidget(void); |
---|
28 | static GLGuiMainWidget* singletonRef; |
---|
29 | }; |
---|
30 | } |
---|
31 | |
---|
32 | #endif /* _GLGUI_MAINWIDGET_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.