|
Mana
|
#include <text.h>
Public Member Functions | |
| void | flash (int time) |
| Flash the text for so many milliseconds. | |
| void | draw (gcn::Graphics *graphics, int xOff, int yOff) override |
| Draws the text. | |
| Text (const std::string &text, int x, int y, gcn::Graphics::Alignment alignment, const gcn::Color *color, bool isSpeech=false, gcn::Font *font=nullptr) | |
| Constructor creates a text object to display on the screen. | |
Public Member Functions inherited from Text | |
| Text (const std::string &text, int x, int y, gcn::Graphics::Alignment alignment, const gcn::Color *color, bool isSpeech=false, gcn::Font *font=nullptr) | |
| Constructor creates a text object to display on the screen. | |
| virtual | ~Text () |
| Destructor. | |
| void | setColor (const gcn::Color *color) |
| int | getWidth () const |
| int | getHeight () const |
| void | adviseXY (int x, int y) |
| Allows the originator of the text to specify the ideal coordinates. | |
Private Attributes | |
| Timer | mTimer |
| Time left for flashing. | |
|
overridevirtual |
|
inline |
| Text::Text | ( | const std::string & | text, |
| int | x, | ||
| int | y, | ||
| gcn::Graphics::Alignment | alignment, | ||
| const gcn::Color * | color, | ||
| bool | isSpeech = false, |
||
| gcn::Font * | font = nullptr |
||
| ) |