Enabled_button Class Reference

#include <Enabled_button.h>

Inheritance diagram for Enabled_button:

Inheritance graph
[legend]
Collaboration diagram for Enabled_button:

Collaboration graph
[legend]
List of all members.

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 []

Detailed Description

Definition at line 25 of file Enabled_button.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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().


Member Data Documentation

const char * Enabled_button::selections [static, protected]

Definition at line 45 of file Enabled_button.h.

Referenced by activate(), and Enabled_button().


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 14:50:26 2007 for ExultEngine by  doxygen 1.5.1