Slider_gump Class Reference

#include <Slider_gump.h>

Inheritance diagram for Slider_gump:

Inheritance graph
[legend]
Collaboration diagram for Slider_gump:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Slider_gump (int mival, int mxval, int step, int defval)
 ~Slider_gump ()
int get_val ()
void clicked_arrow (Slider_button *arrow)
void move_diamond (int dir)
virtual void paint ()
virtual void close ()
virtual void mouse_down (int mx, int my)
virtual void mouse_up (int mx, int my)
virtual void mouse_drag (int mx, int my)
virtual void key_down (int chr)
virtual void mousewheel_up ()
virtual void mousewheel_down ()

Protected Member Functions

void set_val (int newval)

Protected Attributes

Slider_buttonleft_arrow
Slider_buttonright_arrow
int diamondx
int min_val
int max_val
int step_val
int val
unsigned char dragging
int prev_dragx
ShapeID diamond

Static Protected Attributes

static short diamondy
static short leftbtnx
static short rightbtnx
static short btny
static short xmin
static short xmax

Private Member Functions

 UNREPLICATABLE_CLASS_I (Slider_gump, Modal_gump(0, 0, 0, 0))

Detailed Description

Definition at line 29 of file Slider_gump.h.


Constructor & Destructor Documentation

Slider_gump::Slider_gump ( int  mival,
int  mxval,
int  step,
int  defval 
)

Definition at line 96 of file Slider_gump.cc.

References game, Game::get_shape(), and SF_GUMPS_VGA.

Here is the call graph for this function:

Slider_gump::~Slider_gump (  ) 

Definition at line 127 of file Slider_gump.cc.


Member Function Documentation

Slider_gump::UNREPLICATABLE_CLASS_I ( Slider_gump  ,
Modal_gump(0, 0, 0, 0)   
) [private]

void Slider_gump::set_val ( int  newval  )  [protected]

Definition at line 76 of file Slider_gump.cc.

Referenced by move_diamond().

int Slider_gump::get_val (  )  [inline]

Definition at line 53 of file Slider_gump.h.

References val.

Referenced by Gump_manager::prompt_for_number().

void Slider_gump::clicked_arrow ( Slider_button arrow  ) 

Definition at line 139 of file Slider_gump.cc.

Referenced by key_down().

void Slider_gump::move_diamond ( int  dir  ) 

Definition at line 149 of file Slider_gump.cc.

References Game_singletons::gwin, max_val, min_val, paint(), Game_window::set_painted(), set_val(), and val.

Referenced by mousewheel_down(), and mousewheel_up().

Here is the call graph for this function:

void Slider_gump::paint (  )  [virtual]

Reimplemented from Gump.

Definition at line 169 of file Slider_gump.cc.

References gwin, and Game_window::set_painted().

Referenced by move_diamond().

Here is the call graph for this function:

virtual void Slider_gump::close (  )  [inline, virtual]

Reimplemented from Gump.

Definition at line 62 of file Slider_gump.h.

References Modal_gump::done.

void Slider_gump::mouse_down ( int  mx,
int  my 
) [virtual]

Implements Modal_gump.

Definition at line 192 of file Slider_gump.cc.

References dragging, Shape_frame::get_height(), Shape_frame::has_point(), Gump::on_button(), and Gump_button::push().

Here is the call graph for this function:

void Slider_gump::mouse_up ( int  mx,
int  my 
) [virtual]

Implements Modal_gump.

Definition at line 241 of file Slider_gump.cc.

References dragging, gwin, and Game_window::set_painted().

Here is the call graph for this function:

void Slider_gump::mouse_drag ( int  mx,
int  my 
) [virtual]

Reimplemented from Modal_gump.

Definition at line 265 of file Slider_gump.cc.

References dragging.

void Slider_gump::key_down ( int  chr  )  [virtual]

Reimplemented from Modal_gump.

Definition at line 291 of file Slider_gump.cc.

References clicked_arrow(), Modal_gump::done, left_arrow, and right_arrow.

Here is the call graph for this function:

void Slider_gump::mousewheel_up (  )  [virtual]

Reimplemented from Modal_gump.

Definition at line 306 of file Slider_gump.cc.

References move_diamond(), and step_val.

Here is the call graph for this function:

void Slider_gump::mousewheel_down (  )  [virtual]

Reimplemented from Modal_gump.

Definition at line 315 of file Slider_gump.cc.

References move_diamond(), and step_val.

Here is the call graph for this function:


Member Data Documentation

Slider_button* Slider_gump::left_arrow [protected]

Definition at line 35 of file Slider_gump.h.

Referenced by key_down().

Slider_button * Slider_gump::right_arrow [protected]

Definition at line 35 of file Slider_gump.h.

Referenced by key_down().

int Slider_gump::diamondx [protected]

Definition at line 36 of file Slider_gump.h.

short Slider_gump::diamondy [static, protected]

Definition at line 37 of file Slider_gump.h.

int Slider_gump::min_val [protected]

Definition at line 38 of file Slider_gump.h.

Referenced by move_diamond().

int Slider_gump::max_val [protected]

Definition at line 38 of file Slider_gump.h.

Referenced by move_diamond().

int Slider_gump::step_val [protected]

Definition at line 39 of file Slider_gump.h.

Referenced by mousewheel_down(), and mousewheel_up().

int Slider_gump::val [protected]

Definition at line 40 of file Slider_gump.h.

Referenced by get_val(), and move_diamond().

unsigned char Slider_gump::dragging [protected]

Definition at line 41 of file Slider_gump.h.

int Slider_gump::prev_dragx [protected]

Definition at line 42 of file Slider_gump.h.

short Slider_gump::leftbtnx [static, protected]

Definition at line 45 of file Slider_gump.h.

short Slider_gump::rightbtnx [static, protected]

Definition at line 45 of file Slider_gump.h.

short Slider_gump::btny [static, protected]

Definition at line 45 of file Slider_gump.h.

short Slider_gump::xmin [static, protected]

Definition at line 46 of file Slider_gump.h.

short Slider_gump::xmax [static, protected]

Definition at line 46 of file Slider_gump.h.

ShapeID Slider_gump::diamond [protected]

Definition at line 48 of file Slider_gump.h.


The documentation for this class was generated from the following files:
Generated on Mon Jul 9 15:03:16 2007 for ExultEngine by  doxygen 1.5.1