TextBox Class Reference
[Core GUI related classes (widgets)]

#include <textbox.h>

List of all members.


Detailed Description

A text box, meant to be used inside a scroll area.

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

Constructor & Destructor Documentation

TextBox::TextBox (  ) 

Constructor.

Definition at line 30 of file textbox.cpp.


Member Function Documentation

void TextBox::setTextColor ( const gcn::Color *  color  )  [inline]

Definition at line 42 of file textbox.h.

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]

Get the minimum text width for the text box.

Definition at line 53 of file textbox.h.

void TextBox::draw ( gcn::Graphics *  graphics  )  [inline]

Draws the text.

Definition at line 58 of file textbox.h.


Member Data Documentation

int TextBox::mMinWidth [private]

Definition at line 65 of file textbox.h.

const gcn::Color* TextBox::mTextColor [private]

Definition at line 66 of file textbox.h.


The documentation for this class was generated from the following files:

Generated on Sun Apr 26 17:30:44 2009 for The Mana World by  doxygen 1.5.5