$treeview $search $mathjax
Stratagus
2.2.6
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <widgets.h>
Public Member Functions | |
widgets.cpp - The stratagus ui widgets. | |
StatBoxWidget (int width, int height) | |
virtual void | draw (gcn::Graphics *graphics) |
void | setCaption (const std::string &s) |
const std::string & | getCaption () const |
void | setPercent (const int percent) |
int | getPercent () const |
StatBoxWidget::StatBoxWidget | ( | int | width, | |
int | height | |||
) |
StatBoxWidget constructor
width | Width of the StatBoxWidget. | |
height | Height of the StatBoxWidget. |
void StatBoxWidget::draw | ( | gcn::Graphics * | graphics | ) | [virtual] |
Draw StatBoxWidget.
graphics | Graphic driver used to draw. |
Implements gcn::Widget.
void StatBoxWidget::setCaption | ( | const std::string & | caption | ) |
const std::string & StatBoxWidget::getCaption | ( | ) | const |
Get caption of StatBoxWidget.
void StatBoxWidget::setPercent | ( | const int | percent | ) |
int StatBoxWidget::getPercent | ( | ) | const |
Get percent of StatBoxWidget.