00001 #ifndef HEADER_WISTATUSBAR_H
00002 #define HEADER_WISTATUSBAR_H
00003
00004 class Font;
00005
00006 #include "IWidget.h"
00007
00008 #include "SDL.h"
00009 #include <string>
00010
00011
00012
00013
00014 class WiStatusBar : public IWidget {
00015 private:
00016 Font *m_font;
00017 SDL_Color m_color;
00018 int m_w;
00019 std::string m_label;
00020 public:
00021 WiStatusBar(Font *new_font, const SDL_Color &color, int width=0);
00022 virtual ~WiStatusBar();
00023 virtual int getW() const { return m_w; }
00024 virtual int getH() const;
00025 void setLabel(const std::string &label) { m_label = label; }
00026
00027 virtual void drawOn(SDL_Surface *screen);
00028 };
00029
00030 #endif