#include <progress_bar.hpp>


Public Member Functions | |
| tprogress_bar () | |
| void | set_active (const bool) |
| Inherited from tcontrol. | |
| bool | get_active () const |
| Inherited from tcontrol. | |
| unsigned | get_state () const |
| Inherited from tcontrol. | |
| bool | disable_click_dismiss () const |
| Inherited from tcontrol. | |
| void | set_percentage (const unsigned percentage) |
| unsigned | get_percentage () const |
Private Types | |
| enum | tstate { ENABLED, COUNT } |
Possible states of the widget. More... | |
Private Member Functions | |
| const std::string & | get_control_type () const |
| Inherited from tcontrol. | |
Private Attributes | |
| unsigned | percentage_ |
| The percentage done. | |
Definition at line 23 of file progress_bar.hpp.
enum gui2::tprogress_bar::tstate [private] |
Possible states of the widget.
Note the order of the states must be the same as defined in settings.hpp.
Definition at line 63 of file progress_bar.hpp.
| gui2::tprogress_bar::tprogress_bar | ( | ) | [inline] |
Definition at line 28 of file progress_bar.hpp.
References set_percentage().

| bool gui2::tprogress_bar::disable_click_dismiss | ( | ) | const [inline, virtual] |
Inherited from tcontrol.
Reimplemented from gui2::tcontrol.
Definition at line 48 of file progress_bar.hpp.
| bool gui2::tprogress_bar::get_active | ( | ) | const [inline, virtual] |
| const std::string & gui2::tprogress_bar::get_control_type | ( | ) | const [private, virtual] |
Inherited from tcontrol.
Implements gui2::tcontrol.
Definition at line 49 of file progress_bar.cpp.
References type.
| unsigned gui2::tprogress_bar::get_percentage | ( | ) | const [inline] |
Definition at line 54 of file progress_bar.hpp.
References percentage_.
| unsigned gui2::tprogress_bar::get_state | ( | ) | const [inline, virtual] |
| void gui2::tprogress_bar::set_active | ( | const | bool | ) | [inline, virtual] |
| void gui2::tprogress_bar::set_percentage | ( | const unsigned | percentage | ) |
Definition at line 34 of file progress_bar.cpp.
References gui2::tcanvas::set_variable().
Referenced by gui2::animate_logo(), gui2::ttitle_screen::pre_show(), and tprogress_bar().


unsigned gui2::tprogress_bar::percentage_ [private] |
The percentage done.
Definition at line 66 of file progress_bar.hpp.
Referenced by get_percentage().
| Generated by doxygen 1.7.1 on Thu May 24 2012 01:23:11 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |