Mana
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TextManager Class Reference

#include <textmanager.h>

Public Member Functions

 TextManager ()
 
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 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

std::list< Text * > mTextList
 

Detailed Description

Definition at line 30 of file textmanager.h.

Constructor & Destructor Documentation

◆ TextManager()

TextManager::TextManager ( )

Definition at line 30 of file textmanager.cpp.

◆ ~TextManager()

TextManager::~TextManager ( )
default

Destroy the manager.

Member Function Documentation

◆ addText()

void TextManager::addText ( Text text)

Add text to the manager.

Definition at line 34 of file textmanager.cpp.

◆ draw()

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

Draw the text.

Definition at line 62 of file textmanager.cpp.

◆ moveText()

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

Move the text around the screen.

Definition at line 40 of file textmanager.cpp.

◆ place()

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 70 of file textmanager.cpp.

◆ removeText()

void TextManager::removeText ( const Text text)

Remove the text from the manager.

Definition at line 47 of file textmanager.cpp.

Member Data Documentation

◆ mTextList

std::list<Text *> TextManager::mTextList
private

Definition at line 67 of file textmanager.h.


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