Gump_ToggleTextButton Class Reference

#include <Gump_ToggleButton.h>

Inheritance diagram for Gump_ToggleTextButton:

Inheritance graph
[legend]
Collaboration diagram for Gump_ToggleTextButton:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 53 of file Gump_ToggleButton.h.


Constructor & Destructor Documentation

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]

Definition at line 66 of file Gump_ToggleButton.h.

References selections.


Member Function Documentation

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


Member Data Documentation

int Gump_ToggleTextButton::numselections [private]

Definition at line 76 of file Gump_ToggleButton.h.

Referenced by activate().

std::string* Gump_ToggleTextButton::selections [private]

Definition at line 77 of file Gump_ToggleButton.h.

Referenced by activate(), Gump_ToggleTextButton(), and ~Gump_ToggleTextButton().


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