|
SuperTuxKart
|
A small helper class to store and sort text messages to be displayed. More...

Public Member Functions | |
| TextMessage (MessageQueue::MessageType mt, const core::stringw &message) | |
| virtual MessageQueue::MessageType | getMessageType () const |
| Returns the type of the message. | |
| virtual void | init () |
| Init the message text, do linebreak as required. | |
| virtual void | draw (float dt) |
| Draw the message. | |
Public Member Functions inherited from MessageQueue::Message | |
| Message (float timer, const core::stringw &msg) | |
| bool | canBeRemoved () const |
Protected Attributes | |
| MessageQueue::MessageType | m_message_type |
| The type of the message. | |
| std::string | m_render_type |
| The render type of the message: either achievement-message::neutral or friend-message::neutral. | |
| std::vector< gui::GlyphLayout > | m_gls |
| The text layout, can do linebreak if needed. | |
| core::recti | m_text_rect |
| Drawing rectangle of text layout. | |
| SkinWidgetContainer * | m_container |
| A pointer to the Container for the Message. | |
| gui::IGUIFont * | m_font |
| Font and screen size used to detect if re-initialization is needed. | |
| core::dimension2du | m_screen_size |
Protected Attributes inherited from MessageQueue::Message | |
| float | m_display_timer |
| If this < 0, remove this message from queue. | |
| core::stringw | m_message |
| The message. | |
| core::recti | m_area |
| The area which the message is drawn. | |
A small helper class to store and sort text messages to be displayed.