Public Member Functions | Private Types | Private Member Functions | Private Attributes

gui2::tprogress_bar Class Reference

#include <progress_bar.hpp>

Inheritance diagram for gui2::tprogress_bar:
Inheritance graph
[legend]
Collaboration diagram for gui2::tprogress_bar:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

Definition at line 23 of file progress_bar.hpp.


Member Enumeration Documentation

Possible states of the widget.

Note the order of the states must be the same as defined in settings.hpp.

Enumerator:
ENABLED 
COUNT 

Definition at line 63 of file progress_bar.hpp.


Constructor & Destructor Documentation

gui2::tprogress_bar::tprogress_bar (  )  [inline]

Definition at line 28 of file progress_bar.hpp.

References set_percentage().

Here is the call graph for this function:


Member Function Documentation

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]

Inherited from tcontrol.

Implements gui2::tcontrol.

Definition at line 42 of file progress_bar.hpp.

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]

Inherited from tcontrol.

Implements gui2::tcontrol.

Definition at line 45 of file progress_bar.hpp.

void gui2::tprogress_bar::set_active ( const   bool  )  [inline, virtual]

Inherited from tcontrol.

Implements gui2::tcontrol.

Definition at line 39 of file progress_bar.hpp.

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

The percentage done.

Definition at line 66 of file progress_bar.hpp.

Referenced by get_percentage().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Thu May 24 2012 01:23:11 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs