|
Mana
|
#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 |
Definition at line 30 of file textmanager.h.
| TextManager::TextManager | ( | ) |
Definition at line 30 of file textmanager.cpp.
|
default |
Destroy the manager.
| void TextManager::addText | ( | Text * | text | ) |
Add text to the manager.
Definition at line 34 of file textmanager.cpp.
| void TextManager::draw | ( | gcn::Graphics * | graphics, |
| int | xOff, | ||
| int | yOff | ||
| ) |
Draw the text.
Definition at line 62 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.
|
private |
Position the text so as to avoid conflict.
Definition at line 70 of file textmanager.cpp.
| void TextManager::removeText | ( | const Text * | text | ) |
Remove the text from the manager.
Definition at line 47 of file textmanager.cpp.
|
private |
Definition at line 67 of file textmanager.h.