#include <progressbar.hpp>
Public Member Functions | |
progress_bar (CVideo &video) | |
void | set_progress_percent (int progress) |
void | set_text (const std::string &text) |
void | draw_contents () |
Private Attributes | |
int | progress_ |
std::string | text_ |
Definition at line 22 of file progressbar.hpp.
gui::progress_bar::progress_bar | ( | CVideo & | video | ) |
Definition at line 26 of file progressbar.cpp.
void gui::progress_bar::set_progress_percent | ( | int | progress | ) |
void gui::progress_bar::set_text | ( | const std::string & | text | ) |
void gui::progress_bar::draw_contents | ( | ) | [virtual] |
Reimplemented from gui::widget.
Definition at line 41 of file progressbar.cpp.
References font::BLACK_COLOUR, font::draw_text(), CVideo::getSurface(), gui::widget::location(), progress_, font::SIZE_NORMAL, str_cast(), text, text_, font::text_area(), update_rect(), and gui::widget::video().
int gui::progress_bar::progress_ [private] |
Definition at line 33 of file progressbar.hpp.
Referenced by draw_contents(), and set_progress_percent().
std::string gui::progress_bar::text_ [private] |
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |