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