supertux
Classes | Public Member Functions | Static Public Member Functions | List of all members
Dialog Class Reference
Inheritance diagram for Dialog:
Inheritance graph
[legend]

Public Member Functions

 Dialog (bool passive=false, bool auto_clear_dialogs=true)
 
void set_text (const std::string &text)
 
void add_button (const std::string &text, const std::function< void()> &callback={})
 
void add_default_button (const std::string &text, const std::function< void()> &callback={})
 The default gets focused when the dialog is first shown.
 
void add_cancel_button (const std::string &text, const std::function< void()> &callback={})
 The cancel button can not only be activated by selecting it, but via the MENU_BACK button.
 
void clear_buttons ()
 
void event (const SDL_Event &event)
 
void process_input (const Controller &controller)
 
void draw (DrawingContext &context)
 
virtual void update ()
 
bool is_passive () const
 
Vector get_center_pos () const
 
float get_width () const
 
float get_height () const
 

Static Public Member Functions

static void show_message (const std::string &text, bool passive=false, bool no_auto_clear=false, const std::function< void()> &ok_callback={})
 
static void show_confirmation (const std::string &text, const std::function< void()> &callback, bool no_auto_clear=false)
 

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