#include <textbox.h>
Same as the Guichan text box except this one doesn't have a background or border, instead completely relying on the scroll area.
Definition at line 34 of file textbox.h.
Public Member Functions | |
TextBox () | |
Constructor. | |
void | setTextColor (const gcn::Color *color) |
void | setTextWrapped (const std::string &text, int minDimension) |
Sets the text after wrapping it to the current width of the widget. | |
int | getMinWidth () |
Get the minimum text width for the text box. | |
void | draw (gcn::Graphics *graphics) |
Draws the text. | |
Private Attributes | |
int | mMinWidth |
const gcn::Color * | mTextColor |
TextBox::TextBox | ( | ) |
void TextBox::setTextColor | ( | const gcn::Color * | color | ) | [inline] |
void TextBox::setTextWrapped | ( | const std::string & | text, | |
int | minDimension | |||
) |
Sets the text after wrapping it to the current width of the widget.
Definition at line 38 of file textbox.cpp.
int TextBox::getMinWidth | ( | ) | [inline] |
void TextBox::draw | ( | gcn::Graphics * | graphics | ) | [inline] |
int TextBox::mMinWidth [private] |
const gcn::Color* TextBox::mTextColor [private] |