source:
orxonox.OLD/trunk/src/lib/gui/gl_gui/glgui_button.h
@
6774
Last change on this file since 6774 was 5427, checked in by bensch, 19 years ago | |
---|---|
File size: 728 bytes |
Rev | Line | |
---|---|---|
[4838] | 1 | /*! |
[5363] | 2 | * @file glgui_button.h |
3 | * The gl_BUTTON widget of th openglGUI | |
[5360] | 4 | * |
5 | */ | |
[1853] | 6 | |
[5363] | 7 | #ifndef _GLGUI_BUTTON_H |
8 | #define _GLGUI_BUTTON_H | |
[1853] | 9 | |
[5363] | 10 | #include "glgui_widget.h" |
[1853] | 11 | |
[5363] | 12 | typedef enum |
13 | { | |
14 | GLGui_Button_Active, | |
15 | GLGui_Button_Inactive, | |
16 | GLGui_Button_Pressed, | |
17 | GLGui_Button_Released, | |
18 | GLGui_Button_Activating, | |
19 | GLGui_Button_Deactivating, | |
20 | ||
21 | } GLGui_ButtonState; | |
22 | ||
[4838] | 23 | // FORWARD DECLARATION |
[5371] | 24 | class Text; |
[3543] | 25 | |
[5360] | 26 | //! This is part of the openglGUI class |
27 | /** | |
28 | * | |
29 | */ | |
[5363] | 30 | class GLGuiButton : public GLGuiWidget { |
[3543] | 31 | |
[5360] | 32 | public: |
[5395] | 33 | GLGuiButton(); |
34 | virtual ~GLGuiButton(); | |
[2036] | 35 | |
[5395] | 36 | void init(); |
37 | void setLabel(const char* label); | |
[1853] | 38 | |
[5427] | 39 | virtual void draw() const; |
[1853] | 40 | |
[5395] | 41 | protected: |
42 | Text* label; | |
[5371] | 43 | |
[5395] | 44 | private: |
45 | GLGui_ButtonState state; | |
[1853] | 46 | }; |
47 | ||
[5360] | 48 | #endif /* _GLGUI__H */ |
Note: See TracBrowser
for help on using the repository browser.