source:
orxonox.OLD/branches/gui/src/lib/gui/gl_gui/glgui_checkbutton.h
@
7929
Last change on this file since 7929 was 7929, checked in by bensch, 18 years ago | |
---|---|
File size: 824 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 | |
[7929] | 28 | virtual void released(const Vector2D& pos); |
[5391] | 29 | |
[7779] | 30 | bool isActive() { return this->bActive; }; |
31 | void setActivity(bool bActive); | |
[7919] | 32 | void toggleActiveState(); |
[1853] | 33 | |
[7779] | 34 | virtual void draw() const; |
35 | virtual void update() {}; | |
[3245] | 36 | |
[7925] | 37 | protected: |
38 | virtual void resize(); | |
39 | ||
[7779] | 40 | private: |
[7919] | 41 | void init(); |
42 | ||
43 | ||
44 | private: | |
[7779] | 45 | bool bActive; |
[1853] | 46 | |
[7779] | 47 | }; |
48 | } | |
49 | ||
[5366] | 50 | #endif /* _GLGUI_CHECKBUTTON_H */ |
Note: See TracBrowser
for help on using the repository browser.