supertux
Classes | Public Member Functions | Static Public Member Functions | List of all members
Dialog Class Reference
Inheritance diagram for Dialog:
DownloadDialog

Public Member Functions

 Dialog (bool passive=false)
 
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
 

Static Public Member Functions

static void show_message (const std::string &text)
 
static void show_confirmation (const std::string &text, const std::function< void()> &callback)
 

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