____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"#include <widgets.h>

Public Member Functions | |
| 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 |
Definition at line 281 of file widgets.h.
| StatBoxWidget::StatBoxWidget | ( | int | width, | |
| int | height | |||
| ) |
StatBoxWidget constructor
| width | Width of the StatBoxWidget. | |
| height | Height of the StatBoxWidget. |
Definition at line 1377 of file widgets.cpp.
References gcn::Widget::setBackgroundColor(), gcn::Widget::setBaseColor(), gcn::Widget::setForegroundColor(), gcn::Widget::setHeight(), and gcn::Widget::setWidth().
| void StatBoxWidget::draw | ( | gcn::Graphics * | graphics | ) | [virtual] |
Draw StatBoxWidget.
| graphics | Graphic driver used to draw. |
Implements gcn::Widget.
Definition at line 1395 of file widgets.cpp.
References gcn::Graphics::drawRectangle(), gcn::Graphics::drawText(), gcn::Graphics::fillRectangle(), gcn::Widget::getBackgroundColor(), gcn::Widget::getBaseColor(), getCaption(), gcn::Widget::getFont(), gcn::Widget::getForegroundColor(), gcn::Widget::getHeight(), gcn::Widget::getWidth(), gcn::Widget::getX(), gcn::Widget::getY(), gcn::Graphics::setColor(), and gcn::Graphics::setFont().
| void StatBoxWidget::setCaption | ( | const std::string & | caption | ) |
Set caption of StatBoxWidget.
| caption | New value. |
Definition at line 1427 of file widgets.cpp.
References gcn::Widget::setDirty().
| const std::string & StatBoxWidget::getCaption | ( | ) | const |
| void StatBoxWidget::setPercent | ( | const int | percent | ) |
Set percent of StatBoxWidget.
| percent | New value. |
Definition at line 1447 of file widgets.cpp.
References gcn::Widget::setDirty().
| int StatBoxWidget::getPercent | ( | ) | const |
Get percent of StatBoxWidget.
Definition at line 1456 of file widgets.cpp.
1.5.6