#include <Gump_ToggleButton.h>
Inheritance diagram for Gump_ToggleTextButton:
Public Member Functions | |
Gump_ToggleTextButton (Gump *par, std::string *s, int selectionnum, int numsel, int px, int py, int width, int height=0) | |
virtual | ~Gump_ToggleTextButton () |
virtual void | activate () |
int | getselection () const |
virtual void | toggle (int state)=0 |
Private Attributes | |
int | numselections |
std::string * | selections |
Definition at line 53 of file Gump_ToggleButton.h.
Gump_ToggleTextButton::Gump_ToggleTextButton | ( | Gump * | par, | |
std::string * | s, | |||
int | selectionnum, | |||
int | numsel, | |||
int | px, | |||
int | py, | |||
int | width, | |||
int | height = 0 | |||
) | [inline] |
Definition at line 56 of file Gump_ToggleButton.h.
References Text_button::init(), selections, ShapeID::set_frame(), and Text_button::text.
Here is the call graph for this function:
virtual Gump_ToggleTextButton::~Gump_ToggleTextButton | ( | ) | [inline, virtual] |
void Gump_ToggleTextButton::activate | ( | ) | [virtual] |
Implements Gump_button.
Definition at line 37 of file Gump_ToggleButton.cc.
References ShapeID::get_framenum(), Game_singletons::gwin, Text_button::init(), numselections, Text_button::paint(), selections, ShapeID::set_frame(), Game_window::set_painted(), Text_button::text, and toggle().
Here is the call graph for this function:
int Gump_ToggleTextButton::getselection | ( | ) | const [inline] |
Definition at line 72 of file Gump_ToggleButton.h.
References ShapeID::get_framenum().
Here is the call graph for this function:
virtual void Gump_ToggleTextButton::toggle | ( | int | state | ) | [pure virtual] |
Implemented in AudioTextToggle, CombatTextToggle, GameplayTextToggle, and VideoTextToggle.
Referenced by activate().
int Gump_ToggleTextButton::numselections [private] |
std::string* Gump_ToggleTextButton::selections [private] |
Definition at line 77 of file Gump_ToggleButton.h.
Referenced by activate(), Gump_ToggleTextButton(), and ~Gump_ToggleTextButton().