Text Class Reference
[Toolkit classes]

#include <text.h>

Inherits Graphic.

Collaboration diagram for Text:

Collaboration graph
[legend]

List of all members.

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


Detailed Description


Constructor & Destructor Documentation

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,
Point  p 
)

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]


Member Function Documentation

void Text::defineFonts (  )  [static]

void Text::draw ( BITMAP *  canvas,
Point  offset 
) [virtual]

This is the main reason for this class.

Implements Graphic.

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]


Member Data Documentation

Font ** Text::fontList = new Font*[NumFonts] [static]

std::string Text::textString [protected]

FontType Text::type [protected]

int Text::wrap [protected]


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

Generated on Mon Mar 16 14:33:16 2009 for LearningGaming by  doxygen 1.5.7.1