supertux
Public Member Functions | Protected Attributes | List of all members
InterfaceLabel Class Reference
Inheritance diagram for InterfaceLabel:
Inheritance graph
[legend]
Collaboration diagram for InterfaceLabel:
Collaboration graph
[legend]

Public Member Functions

 InterfaceLabel (const Rectf &rect, std::string label)
 
virtual void draw (DrawingContext &context) override
 
virtual bool on_mouse_motion (const SDL_MouseMotionEvent &motion) override
 
void set_rect (const Rectf &rect)
 
Rectf get_rect () const
 
void set_label (const std::string &label)
 
const std::string & get_label () const
 
bool fits (const std::string &text) const
 
std::string get_truncated_text () const
 
- Public Member Functions inherited from Widget
virtual bool event (const SDL_Event &ev)
 
virtual void update (float dt_sec)
 
virtual void setup ()
 
virtual void resize ()
 
virtual bool on_mouse_button_up (const SDL_MouseButtonEvent &button)
 
virtual bool on_mouse_button_down (const SDL_MouseButtonEvent &button)
 
virtual bool on_mouse_wheel (const SDL_MouseWheelEvent &wheel)
 
virtual bool on_key_up (const SDL_KeyboardEvent &key)
 
virtual bool on_key_down (const SDL_KeyboardEvent &key)
 

Protected Attributes

Rectf m_rect
 The rectangle where the InterfaceLabel should be rendered.
 
std::string m_label
 The text of the label.
 

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