Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10210 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
RevLine 
[4838]1/*!
[8972]2 * @file glgui_energywidget.h
3 * @brief Definition of an EnergyWidget, that displays a bar and a Text
[3245]4*/
[1853]5
[8972]6#ifndef _GLGUI_ENERGY_WIDGET_H
7#define _GLGUI_ENERGY_WIDGET_H
[1853]8
[8974]9#include "glgui_box.h"
[8972]10#include "glgui_bar.h"
11#include "glgui_text.h"
[1853]12
[8972]13namespace OrxGui
14{
[3543]15
[8972]16  //! A class for ...
[8974]17  class GLGuiEnergyWidget : public GLGuiBox
[8972]18  {
[3543]19
[8973]20  public:
[8972]21    GLGuiEnergyWidget();
22    virtual ~GLGuiEnergyWidget();
[2036]23
[8977]24    void setDisplayedName(const std::string& name);
[8974]25    void setMaximum(float max);
26    void setValue(float value);
27
[8973]28  protected:
[8981]29    virtual void resize();
[8975]30    virtual void showing();
31    virtual void hiding();
[1853]32
[8973]33  private:
[8980]34    GLGuiText               _name;
[8988]35    GLGuiText               _valueText;
[8980]36    GLGuiBar                _bar;
[1853]37
[8972]38  };
39}
40#endif /* _GLGUI_ENERGY_WIDGET_H */
Note: See TracBrowser for help on using the repository browser.