Line | |
---|
1 | /*! |
---|
2 | * @file glgui_energywidget.h |
---|
3 | * @brief Definition of an EnergyWidget, that displays a bar and a Text |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _GLGUI_ENERGY_WIDGET_H |
---|
7 | #define _GLGUI_ENERGY_WIDGET_H |
---|
8 | |
---|
9 | #include "glgui_box.h" |
---|
10 | #include "glgui_bar.h" |
---|
11 | #include "glgui_text.h" |
---|
12 | |
---|
13 | namespace OrxGui |
---|
14 | { |
---|
15 | |
---|
16 | //! A class for ... |
---|
17 | class GLGuiEnergyWidget : public GLGuiBox |
---|
18 | { |
---|
19 | |
---|
20 | public: |
---|
21 | GLGuiEnergyWidget(); |
---|
22 | virtual ~GLGuiEnergyWidget(); |
---|
23 | |
---|
24 | void setMaximum(float max); |
---|
25 | void setValue(float value); |
---|
26 | |
---|
27 | protected: |
---|
28 | //virtual void resize(); |
---|
29 | virtual void showing(); |
---|
30 | virtual void hiding(); |
---|
31 | |
---|
32 | private: |
---|
33 | GLGuiBar bar; |
---|
34 | GLGuiText text; |
---|
35 | |
---|
36 | }; |
---|
37 | } |
---|
38 | #endif /* _GLGUI_ENERGY_WIDGET_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.