Last change
on this file since 6428 was
5427,
checked in by bensch, 19 years ago
|
orxonox/trunk: some minor include stuff
|
File size:
728 bytes
|
Line | |
---|
1 | /*! |
---|
2 | * @file glgui_button.h |
---|
3 | * The gl_BUTTON widget of th openglGUI |
---|
4 | * |
---|
5 | */ |
---|
6 | |
---|
7 | #ifndef _GLGUI_BUTTON_H |
---|
8 | #define _GLGUI_BUTTON_H |
---|
9 | |
---|
10 | #include "glgui_widget.h" |
---|
11 | |
---|
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 | |
---|
23 | // FORWARD DECLARATION |
---|
24 | class Text; |
---|
25 | |
---|
26 | //! This is part of the openglGUI class |
---|
27 | /** |
---|
28 | * |
---|
29 | */ |
---|
30 | class GLGuiButton : public GLGuiWidget { |
---|
31 | |
---|
32 | public: |
---|
33 | GLGuiButton(); |
---|
34 | virtual ~GLGuiButton(); |
---|
35 | |
---|
36 | void init(); |
---|
37 | void setLabel(const char* label); |
---|
38 | |
---|
39 | virtual void draw() const; |
---|
40 | |
---|
41 | protected: |
---|
42 | Text* label; |
---|
43 | |
---|
44 | private: |
---|
45 | GLGui_ButtonState state; |
---|
46 | }; |
---|
47 | |
---|
48 | #endif /* _GLGUI__H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.