Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

implementing interface 'by hand' without still buggy packing-function. can't test with spaceship because of segfault

File size: 1.0 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_widget.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
28    inline GLGuiWidget* getImageWidget() {return &this->_image;};
29    inline GLGuiWidget* getValueWidget() {return &this->_valueText;};
30    inline GLGuiWidget* getBarWidget() {return &this->_bar;};
31
32  protected:
33    virtual void resize();
34    virtual void showing();
35    virtual void hiding();
36
37  private:
38    GLGuiWidget             _image;
39    GLGuiText               _valueText;
40    GLGuiBar                _bar;
41
42  };
43}
44#endif /* _GLGUI_ENERGY_WIDGET_VERTICAL_H */
Note: See TracBrowser for help on using the repository browser.