Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/playability/src/world_entities/elements/glgui_energywidgetvertical.h @ 10200

Last change on this file since 10200 was 10200, checked in by muellmic, 17 years ago

changed style of vertical gui-element. textures still need to be done, though

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 GLGuiWidget* getImageWidget() {return &this->_image;};
30    inline GLGuiWidget* getValueWidget() {return &this->_valueText;};
31    inline GLGuiWidget* 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.