source:
orxonox.OLD/trunk/src/lib/gui/gl_gui/glgui_checkbutton.h
@
7923
Last change on this file since 7923 was 7919, checked in by bensch, 18 years ago | |
---|---|
File size: 791 bytes |
Rev | Line | |
---|---|---|
[4838] | 1 | /*! |
[5366] | 2 | * @file glgui_checkbutton.h |
[5360] | 3 | * The gl_ widget of th openglGUI |
4 | * | |
5 | */ | |
[1853] | 6 | |
[5366] | 7 | #ifndef _GLGUI_CHECKBUTTON_H |
[7919] | 8 | #define _GLGUI_CHECKBUTTON_H |
[1853] | 9 | |
[5366] | 10 | #include "glgui_button.h" |
[1853] | 11 | |
[7779] | 12 | namespace OrxGui |
13 | { | |
[3543] | 14 | |
[7779] | 15 | // FORWARD DECLARATION |
[3543] | 16 | |
[7779] | 17 | //! This is part of the openglGUI class |
18 | /** | |
19 | * | |
20 | */ | |
21 | class GLGuiCheckButton : public GLGuiButton | |
22 | { | |
[2036] | 23 | |
[7779] | 24 | public: |
[7919] | 25 | GLGuiCheckButton(const std::string& label = "", bool active = false); |
[7779] | 26 | virtual ~GLGuiCheckButton(); |
[1853] | 27 | |
[7919] | 28 | virtual void resize(); |
29 | virtual void released(); | |
[5391] | 30 | |
[7779] | 31 | bool isActive() { return this->bActive; }; |
32 | void setActivity(bool bActive); | |
[7919] | 33 | void toggleActiveState(); |
[1853] | 34 | |
[7779] | 35 | virtual void draw() const; |
36 | virtual void update() {}; | |
[3245] | 37 | |
[7779] | 38 | private: |
[7919] | 39 | void init(); |
40 | ||
41 | ||
42 | private: | |
[7779] | 43 | bool bActive; |
[1853] | 44 | |
[7779] | 45 | }; |
46 | } | |
47 | ||
[5366] | 48 | #endif /* _GLGUI_CHECKBUTTON_H */ |
Note: See TracBrowser
for help on using the repository browser.