Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/elements/glgui_energywidget.h @ 9842

Last change on this file since 9842 was 8988, checked in by bensch, 18 years ago

orxonox/trunk: much nicer rendering. The Bar is now behind the Value

File size: 782 bytes
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
13namespace OrxGui
14{
15
16  //! A class for ...
17  class GLGuiEnergyWidget : public GLGuiBox
18  {
19
20  public:
21    GLGuiEnergyWidget();
22    virtual ~GLGuiEnergyWidget();
23
24    void setDisplayedName(const std::string& name);
25    void setMaximum(float max);
26    void setValue(float value);
27
28  protected:
29    virtual void resize();
30    virtual void showing();
31    virtual void hiding();
32
33  private:
34    GLGuiText               _name;
35    GLGuiText               _valueText;
36    GLGuiBar                _bar;
37
38  };
39}
40#endif /* _GLGUI_ENERGY_WIDGET_H */
Note: See TracBrowser for help on using the repository browser.