#include <Yesno_gump.h>
Inheritance diagram for Yesno_gump:
Public Member Functions | |
Yesno_gump (const std::string &txt) | |
~Yesno_gump () | |
int | get_answer () |
virtual void | paint () |
virtual void | mouse_down (int mx, int my) |
virtual void | mouse_up (int mx, int my) |
virtual void | key_down (int chr) |
Static Public Member Functions | |
static int | ask (const char *txt) |
Protected Member Functions | |
void | set_answer (int y) |
Protected Attributes | |
const std::string | text |
int | answer |
Yesno_button * | yes_button |
Yesno_button * | no_button |
Static Protected Attributes | |
static short | yesx |
static short | yesnoy |
static short | nox |
Private Member Functions | |
UNREPLICATABLE_CLASS_I (Yesno_gump, Modal_gump(0, 0, 0, 0)) | |
Friends | |
class | Yesno_button |
Definition at line 31 of file Yesno_gump.h.
Yesno_gump::Yesno_gump | ( | const std::string & | txt | ) |
Definition at line 77 of file Yesno_gump.cc.
Yesno_gump::~Yesno_gump | ( | ) |
Definition at line 91 of file Yesno_gump.cc.
Yesno_gump::UNREPLICATABLE_CLASS_I | ( | Yesno_gump | , | |
Modal_gump(0, 0, 0, 0) | ||||
) | [private] |
void Yesno_gump::set_answer | ( | int | y | ) | [inline, protected] |
Definition at line 41 of file Yesno_gump.h.
References answer, and Modal_gump::done.
Referenced by key_down().
int Yesno_gump::get_answer | ( | ) | [inline] |
void Yesno_gump::paint | ( | ) | [virtual] |
Reimplemented from Gump.
Definition at line 103 of file Yesno_gump.cc.
References gwin, and Game_window::set_painted().
Here is the call graph for this function:
void Yesno_gump::mouse_down | ( | int | mx, | |
int | my | |||
) | [virtual] |
void Yesno_gump::mouse_up | ( | int | mx, | |
int | my | |||
) | [virtual] |
void Yesno_gump::key_down | ( | int | chr | ) | [virtual] |
Reimplemented from Modal_gump.
Definition at line 161 of file Yesno_gump.cc.
References set_answer().
Here is the call graph for this function:
int Yesno_gump::ask | ( | const char * | txt | ) | [static] |
Definition at line 176 of file Yesno_gump.cc.
References get_answer(), and Mouse::hand.
Referenced by Newfile_gump::delete_file(), File_gump::load(), Gump_manager::okay_to_quit(), Gamemenu_gump::quit(), File_gump::quit(), Game_window::restore_gamedat(), Newfile_gump::save(), and File_gump::save().
Here is the call graph for this function:
friend class Yesno_button [friend] |
Definition at line 48 of file Yesno_gump.h.
short Yesno_gump::yesx [static, protected] |
Definition at line 36 of file Yesno_gump.h.
short Yesno_gump::yesnoy [static, protected] |
Definition at line 36 of file Yesno_gump.h.
short Yesno_gump::nox [static, protected] |
Definition at line 36 of file Yesno_gump.h.
const std::string Yesno_gump::text [protected] |
Definition at line 37 of file Yesno_gump.h.
int Yesno_gump::answer [protected] |
Yesno_button* Yesno_gump::yes_button [protected] |
Definition at line 40 of file Yesno_gump.h.
Yesno_button * Yesno_gump::no_button [protected] |
Definition at line 40 of file Yesno_gump.h.