Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/vs-enhencements/src/world_entities/elements/glgui_energywidgetvertical.h @ 10641

Last change on this file since 10641 was 10368, checked in by patrick, 18 years ago

merged the branche playability into the trunk

File size: 1.1 KB
Line 
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
9//#include "glgui_box.h"
10#include "glgui_bar.h"
11#include "glgui_text.h"
12#include "glgui_image.h"
13
14namespace OrxGui
15{
16
17  //! A class for ...
18  class GLGuiEnergyWidgetVertical : public GLGuiWidget
19  {
20
21  public:
22    GLGuiEnergyWidgetVertical();
23    virtual ~GLGuiEnergyWidgetVertical();
24
25    void setMaximum(float max);
26    void setValue(float value);
27    void setDisplayedImage(const std::string& imageName);
28
29    inline GLGuiImage* getImageWidget() {return this->_image;};
30    inline GLGuiText* getValueWidget() {return this->_valueText;};
31    inline GLGuiBar* getBarWidget() {return this->_bar;};
32
33  protected:
34    virtual void resize();
35    virtual void showing();
36    virtual void hiding();
37
38  private:
39    GLGuiImage*              _image;
40    GLGuiText*               _valueText;
41    GLGuiBar*                _bar;
42
43  };
44}
45#endif /* _GLGUI_ENERGY_WIDGET_VERTICAL_H */
Note: See TracBrowser for help on using the repository browser.