#include <Enabled_button.h>
Inheritance diagram for Enabled_button:


Public Member Functions | |
| Enabled_button (Gump *par, int selectionnum, int px, int py, int width, int height=0) | |
| virtual | ~Enabled_button () |
| virtual void | activate () |
| int | getselection () const |
| virtual void | toggle (int state)=0 |
Static Protected Attributes | |
| static const char * | selections [] |
Definition at line 25 of file Enabled_button.h.
| Enabled_button::Enabled_button | ( | Gump * | par, | |
| int | selectionnum, | |||
| int | px, | |||
| int | py, | |||
| int | width, | |||
| int | height = 0 | |||
| ) | [inline] |
Definition at line 28 of file Enabled_button.h.
References Text_button::init(), selections, ShapeID::set_frame(), and Text_button::text.
Here is the call graph for this function:

| virtual Enabled_button::~Enabled_button | ( | ) | [inline, virtual] |
Definition at line 37 of file Enabled_button.h.
| void Enabled_button::activate | ( | ) | [virtual] |
Implements Gump_button.
Definition at line 29 of file Enabled_button.cc.
References ShapeID::get_framenum(), Game_singletons::gwin, Text_button::init(), 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 Enabled_button::getselection | ( | ) | const [inline] |
Definition at line 41 of file Enabled_button.h.
References ShapeID::get_framenum().
Here is the call graph for this function:

| virtual void Enabled_button::toggle | ( | int | state | ) | [pure virtual] |
Implemented in AudioEnabledToggle, CombatEnabledToggle, and GameplayEnabledToggle.
Referenced by activate().
const char * Enabled_button::selections [static, protected] |
1.5.1