SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MessageQueue::StaticTextMessage Class Reference
Inheritance diagram for MessageQueue::StaticTextMessage:
Inheritance graph
[legend]

Public Member Functions

 StaticTextMessage (MessageQueue::MessageType mt, const core::stringw &message)
 
virtual void draw (float dt)
 Draw the message.
 
- Public Member Functions inherited from MessageQueue::TextMessage
 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)
 
virtual MessageQueue::MessageType getMessageType () const =0
 
virtual void init ()=0
 
virtual void draw (float dt)
 
bool canBeRemoved () const
 

Additional Inherited Members

- Protected Attributes inherited from MessageQueue::TextMessage
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.
 
SkinWidgetContainerm_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.
 

Member Function Documentation

◆ draw()

virtual void MessageQueue::StaticTextMessage::draw ( float  dt)
inlinevirtual

Draw the message.

Reimplemented from MessageQueue::TextMessage.


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