FIFE
2008.0
|
#include <percentagebar.hpp>
Public Member Functions | |
PercentageBar () | |
void | setOrientation (Orientation orientation) |
Orientation | getOrientation () const |
int | getValue () const |
void | setValue (int value) |
Protected Attributes | |
double | mValue |
Orientation | mOrientation |
A simple percentage bar.
Definition at line 44 of file percentagebar.hpp.
gcn::PercentageBar::PercentageBar | ( | ) |
Constructor.
Definition at line 41 of file percentagebar.cpp.
References setOrientation(), and setValue().
PercentageBar::Orientation gcn::PercentageBar::getOrientation | ( | ) | const |
Gets the orientation of the percentage bar..
Definition at line 104 of file percentagebar.cpp.
References mOrientation.
int gcn::PercentageBar::getValue | ( | ) | const |
Gets the value of the percentage bar
Definition at line 94 of file percentagebar.cpp.
References mValue.
void gcn::PercentageBar::setOrientation | ( | PercentageBar::Orientation | orientation | ) |
Sets the orientation of the percentage bar.
orientation | The orientation of the percentage bar. |
Definition at line 99 of file percentagebar.cpp.
References mOrientation.
Referenced by PercentageBar().
void gcn::PercentageBar::setValue | ( | int | value | ) |
Sets the value of the percentage bar
value | In the range of 0-100. |
Definition at line 77 of file percentagebar.cpp.
References mValue.
Referenced by PercentageBar().
Orientation gcn::PercentageBar::mOrientation [protected] |
Holds the orientation of the percentage bar. A percentage bar can be drawn vertically or horizontally.
Definition at line 116 of file percentagebar.hpp.
Referenced by getOrientation(), and setOrientation().
double gcn::PercentageBar::mValue [protected] |
Holds the current value of the percentage bar.
Definition at line 110 of file percentagebar.hpp.
Referenced by getValue(), and setValue().