____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
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 Types | |
| enum | { LEFT = 0, CENTER, RIGHT, TOP, BOTTOM } |
Public Member Functions | |
| MultiLineLabel () | |
| MultiLineLabel (const std::string &caption) | |
| virtual void | setCaption (const std::string &caption) |
| virtual const std::string & | getCaption () const |
| virtual void | setAlignment (unsigned int alignment) |
| virtual unsigned int | getAlignment () |
| virtual void | setVerticalAlignment (unsigned int alignment) |
| virtual unsigned int | getVerticalAlignment () |
| virtual void | setLineWidth (int width) |
| virtual int | getLineWidth () |
| virtual void | adjustSize () |
| virtual void | draw (gcn::Graphics *graphics) |
| virtual void | drawBorder (gcn::Graphics *graphics) |
Definition at line 175 of file widgets.h.
| MultiLineLabel::MultiLineLabel | ( | ) |
| MultiLineLabel::MultiLineLabel | ( | const std::string & | caption | ) |
MultiLineLabel constructor
Definition at line 762 of file widgets.cpp.
References adjustSize(), LEFT, and TOP.
| void MultiLineLabel::setCaption | ( | const std::string & | caption | ) | [virtual] |
| const std::string & MultiLineLabel::getCaption | ( | ) | const [virtual] |
Get the caption
Definition at line 786 of file widgets.cpp.
| void MultiLineLabel::setAlignment | ( | unsigned int | alignment | ) | [virtual] |
Set the horizontal alignment
Definition at line 794 of file widgets.cpp.
| unsigned int MultiLineLabel::getAlignment | ( | ) | [virtual] |
| void MultiLineLabel::setVerticalAlignment | ( | unsigned int | alignment | ) | [virtual] |
Set the vertical alignment
Definition at line 810 of file widgets.cpp.
| unsigned int MultiLineLabel::getVerticalAlignment | ( | ) | [virtual] |
| void MultiLineLabel::setLineWidth | ( | int | width | ) | [virtual] |
Set the line width
Definition at line 826 of file widgets.cpp.
| int MultiLineLabel::getLineWidth | ( | ) | [virtual] |
Get the line width
Definition at line 835 of file widgets.cpp.
| void MultiLineLabel::adjustSize | ( | ) | [virtual] |
Adjust the size
Definition at line 843 of file widgets.cpp.
References gcn::Widget::getFont(), gcn::Widget::getHeight(), int(), gcn::Widget::setHeight(), and gcn::Widget::setWidth().
Referenced by MultiLineLabel().
| void MultiLineLabel::draw | ( | gcn::Graphics * | graphics | ) | [virtual] |
Draw the label
Implements gcn::Widget.
Definition at line 863 of file widgets.cpp.
References BOTTOM, CENTER, gcn::Graphics::drawText(), GCN_EXCEPTION, getAlignment(), gcn::Widget::getFont(), gcn::Widget::getForegroundColor(), gcn::Widget::getHeight(), getVerticalAlignment(), gcn::Widget::getWidth(), int(), LEFT, RIGHT, gcn::Graphics::setColor(), gcn::Graphics::setFont(), and TOP.
| void MultiLineLabel::drawBorder | ( | gcn::Graphics * | graphics | ) | [virtual] |
Draw the border
Reimplemented from gcn::Widget.
Definition at line 905 of file widgets.cpp.
References gcn::Color::a, gcn::Graphics::drawLine(), gcn::Widget::getBaseColor(), gcn::Widget::getBorderSize(), gcn::Widget::getHeight(), gcn::Widget::getWidth(), and gcn::Graphics::setColor().
1.5.6