TextManager Class Reference

#include <textmanager.h>

List of all members.


Detailed Description

Definition at line 31 of file textmanager.h.


Public Member Functions

 TextManager ()
 Constructor.
void addText (Text *text)
 Add text to the manager.
void moveText (Text *text, int x, int y)
 Move the text around the screen.
void removeText (const Text *text)
 Remove the text from the manager.
 ~TextManager ()
 Destroy the manager.
void draw (gcn::Graphics *graphics, int xOff, int yOff)
 Draw the text.

Private Types

typedef std::list< Text * > TextList
 The container type.

Private Member Functions

void place (const Text *textObj, const Text *omit, int &x, int &y, int h)
 Position the text so as to avoid conflict.

Private Attributes

TextList mTextList
 The container.

Member Typedef Documentation

typedef std::list<Text *> TextManager::TextList [private]

The container type.

Definition at line 71 of file textmanager.h.


Constructor & Destructor Documentation

TextManager::TextManager (  ) 

Constructor.

Definition at line 30 of file textmanager.cpp.

TextManager::~TextManager (  ) 

Destroy the manager.

Definition at line 60 of file textmanager.cpp.


Member Function Documentation

void TextManager::addText ( Text text  ) 

Add text to the manager.

Definition at line 34 of file textmanager.cpp.

void TextManager::moveText ( Text text,
int  x,
int  y 
)

Move the text around the screen.

Definition at line 40 of file textmanager.cpp.

void TextManager::removeText ( const Text text  ) 

Remove the text from the manager.

Definition at line 47 of file textmanager.cpp.

void TextManager::draw ( gcn::Graphics *  graphics,
int  xOff,
int  yOff 
)

Draw the text.

Definition at line 64 of file textmanager.cpp.

void TextManager::place ( const Text textObj,
const Text omit,
int &  x,
int &  y,
int  h 
) [private]

Position the text so as to avoid conflict.

Definition at line 73 of file textmanager.cpp.


Member Data Documentation

The container.

Definition at line 72 of file textmanager.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