Rev | Line | |
---|
[10107] | 1 | /*! |
---|
| 2 | * @file glgui_energywidgetvertical.h |
---|
| 3 | * @brief Definition of an EnergyWidgetVertical, that displays a bar and a Text |
---|
| 4 | */ |
---|
| 5 | |
---|
| 6 | #ifndef _GLGUI_ENERGY_WIDGET_VERTICAL_H |
---|
| 7 | #define _GLGUI_ENERGY_WIDGET_VERTICAL_H |
---|
| 8 | |
---|
[10200] | 9 | //#include "glgui_box.h" |
---|
[10107] | 10 | #include "glgui_bar.h" |
---|
| 11 | #include "glgui_text.h" |
---|
[10200] | 12 | #include "glgui_image.h" |
---|
[10107] | 13 | |
---|
| 14 | namespace OrxGui |
---|
| 15 | { |
---|
| 16 | |
---|
| 17 | //! A class for ... |
---|
[10194] | 18 | class GLGuiEnergyWidgetVertical : public GLGuiWidget |
---|
[10107] | 19 | { |
---|
| 20 | |
---|
| 21 | public: |
---|
| 22 | GLGuiEnergyWidgetVertical(); |
---|
| 23 | virtual ~GLGuiEnergyWidgetVertical(); |
---|
| 24 | |
---|
| 25 | void setMaximum(float max); |
---|
| 26 | void setValue(float value); |
---|
[10200] | 27 | void setDisplayedImage(const std::string& imageName); |
---|
[10107] | 28 | |
---|
[10301] | 29 | inline GLGuiImage* getImageWidget() {return this->_image;}; |
---|
| 30 | inline GLGuiText* getValueWidget() {return this->_valueText;}; |
---|
| 31 | inline GLGuiBar* getBarWidget() {return this->_bar;}; |
---|
[10107] | 32 | |
---|
| 33 | protected: |
---|
| 34 | virtual void resize(); |
---|
| 35 | virtual void showing(); |
---|
| 36 | virtual void hiding(); |
---|
| 37 | |
---|
| 38 | private: |
---|
[10301] | 39 | GLGuiImage* _image; |
---|
| 40 | GLGuiText* _valueText; |
---|
| 41 | GLGuiBar* _bar; |
---|
[10107] | 42 | |
---|
| 43 | }; |
---|
| 44 | } |
---|
| 45 | #endif /* _GLGUI_ENERGY_WIDGET_VERTICAL_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.