#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 23 of file progressbar.hpp.
| gui::progress_bar::progress_bar | ( | CVideo & | video | ) |
Definition at line 28 of file progressbar.cpp.
| void gui::progress_bar::draw_contents | ( | ) | [virtual] |
Reimplemented from gui::widget.
Definition at line 43 of file progressbar.cpp.
References font::BLACK_COLOR, gui2::create_rect(), font::draw_text(), CVideo::getSurface(), gui::widget::location(), progress_, sdl_fill_rect(), font::SIZE_NORMAL, str_cast(), text_, font::text_area(), update_rect(), and gui::widget::video().

| void gui::progress_bar::set_progress_percent | ( | int | progress | ) |
Definition at line 31 of file progressbar.cpp.
References progress_, and gui::widget::set_dirty().

| void gui::progress_bar::set_text | ( | const std::string & | text | ) |
Definition at line 37 of file progressbar.cpp.
References gui::widget::set_dirty(), and text_.

int gui::progress_bar::progress_ [private] |
Definition at line 34 of file progressbar.hpp.
Referenced by draw_contents(), and set_progress_percent().
std::string gui::progress_bar::text_ [private] |
Definition at line 35 of file progressbar.hpp.
Referenced by draw_contents(), and set_text().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:21:25 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |