Line | |
---|
1 | /*! |
---|
2 | * @file glgui_checkbutton.h |
---|
3 | * The gl_ widget of th openglGUI |
---|
4 | * |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _GLGUI_CHECKBUTTON_H |
---|
8 | #define _GLGUI_CHECKBUTTON_H |
---|
9 | |
---|
10 | #include "glgui_button.h" |
---|
11 | |
---|
12 | namespace OrxGui |
---|
13 | { |
---|
14 | |
---|
15 | // FORWARD DECLARATION |
---|
16 | |
---|
17 | //! This is part of the openglGUI class |
---|
18 | /** |
---|
19 | * |
---|
20 | */ |
---|
21 | class GLGuiCheckButton : public GLGuiButton |
---|
22 | { |
---|
23 | |
---|
24 | public: |
---|
25 | GLGuiCheckButton(const std::string& label = "", bool active = false); |
---|
26 | virtual ~GLGuiCheckButton(); |
---|
27 | |
---|
28 | virtual void resize(); |
---|
29 | virtual void released(); |
---|
30 | |
---|
31 | bool isActive() { return this->bActive; }; |
---|
32 | void setActivity(bool bActive); |
---|
33 | void toggleActiveState(); |
---|
34 | |
---|
35 | virtual void draw() const; |
---|
36 | virtual void update() {}; |
---|
37 | |
---|
38 | private: |
---|
39 | void init(); |
---|
40 | |
---|
41 | |
---|
42 | private: |
---|
43 | bool bActive; |
---|
44 | |
---|
45 | }; |
---|
46 | } |
---|
47 | |
---|
48 | #endif /* _GLGUI_CHECKBUTTON_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.