Gump_ToggleButton Class Reference

#include <Gump_ToggleButton.h>

Inheritance diagram for Gump_ToggleButton:

Inheritance graph
[legend]
Collaboration diagram for Gump_ToggleButton:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Gump_ToggleButton (Gump *par, int px, int py, int shapenum, int selectionnum, int numsel)
virtual void activate ()
int getselection () const
virtual void toggle (int state)=0

Private Attributes

int numselections

Detailed Description

Definition at line 29 of file Gump_ToggleButton.h.


Constructor & Destructor Documentation

Gump_ToggleButton::Gump_ToggleButton ( Gump par,
int  px,
int  py,
int  shapenum,
int  selectionnum,
int  numsel 
) [inline]

Definition at line 32 of file Gump_ToggleButton.h.

References ShapeID::set_frame().

Here is the call graph for this function:


Member Function Documentation

void Gump_ToggleButton::activate (  )  [virtual]

Implements Gump_button.

Definition at line 27 of file Gump_ToggleButton.cc.

References ShapeID::get_framenum(), Game_singletons::gwin, numselections, Gump_button::paint(), ShapeID::set_frame(), Game_window::set_painted(), and toggle().

Here is the call graph for this function:

int Gump_ToggleButton::getselection (  )  const [inline]

Definition at line 42 of file Gump_ToggleButton.h.

References ShapeID::get_framenum().

Here is the call graph for this function:

virtual void Gump_ToggleButton::toggle ( int  state  )  [pure virtual]

Referenced by activate().


Member Data Documentation

int Gump_ToggleButton::numselections [private]

Definition at line 46 of file Gump_ToggleButton.h.

Referenced by activate().


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