#include <text.h>
Inherits Graphic.

Public Member Functions | |
| Text () | |
| Text (std::string s, Point p) | |
| Text (std::string s, int x, int y) | |
| Text (std::string s, FontType type, Point p) | |
| Text (std::string s, FontType type, int x, int y) | |
| Text (std::string s, TextAlignment align, Point p) | |
| Text (std::string s, TextAlignment align, int x, int y) | |
| Text (std::string s, FontType type, TextAlignment align, Point p) | |
| Text (std::string s, FontType type, TextAlignment align, int x, int y) | |
| ~Text () | |
| void | draw (BITMAP *canvas, Point offset) |
| This is the main reason for this class. | |
| void | setString (std::string s) |
| void | setWrap (int wrap) |
| void | setAlignment (TextAlignment align) |
| void | setFont (FontType type) |
Static Public Member Functions | |
| static void | defineFonts () |
Static Public Attributes | |
| static Font ** | fontList = new Font*[NumFonts] |
Protected Member Functions | |
| void | textout (const char *s, int linenumber, BITMAP *canvas, Point offset) |
Protected Attributes | |
| std::string | textString |
| int | wrap |
| TextAlignment | alignment |
| FontType | type |
| Text::Text | ( | ) |
| Text::Text | ( | std::string | s, | |
| Point | p | |||
| ) |
| Text::Text | ( | std::string | s, | |
| int | x, | |||
| int | y | |||
| ) |
| Text::Text | ( | std::string | s, | |
| FontType | type, | |||
| int | x, | |||
| int | y | |||
| ) |
| Text::Text | ( | std::string | s, | |
| TextAlignment | align, | |||
| Point | p | |||
| ) |
| Text::Text | ( | std::string | s, | |
| TextAlignment | align, | |||
| int | x, | |||
| int | y | |||
| ) |
| Text::Text | ( | std::string | s, | |
| FontType | type, | |||
| TextAlignment | align, | |||
| Point | p | |||
| ) |
| Text::Text | ( | std::string | s, | |
| FontType | type, | |||
| TextAlignment | align, | |||
| int | x, | |||
| int | y | |||
| ) |
| Text::~Text | ( | ) | [inline] |
| void Text::defineFonts | ( | ) | [static] |
| void Text::draw | ( | BITMAP * | canvas, | |
| Point | offset | |||
| ) | [virtual] |
| void Text::setAlignment | ( | TextAlignment | align | ) |
| void Text::setFont | ( | FontType | type | ) |
| void Text::setString | ( | std::string | s | ) |
| void Text::setWrap | ( | int | wrap | ) |
| void Text::textout | ( | const char * | s, | |
| int | linenumber, | |||
| BITMAP * | canvas, | |||
| Point | offset | |||
| ) | [protected] |
TextAlignment Text::alignment [protected] |
Font ** Text::fontList = new Font*[NumFonts] [static] |
std::string Text::textString [protected] |
FontType Text::type [protected] |
int Text::wrap [protected] |
1.5.7.1