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


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_button * | left_arrow |
| Slider_button * | right_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)) | |
Definition at line 29 of file Slider_gump.h.
| 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.
| Slider_gump::UNREPLICATABLE_CLASS_I | ( | Slider_gump | , | |
| Modal_gump(0, 0, 0, 0) | ||||
| ) | [private] |
| void Slider_gump::set_val | ( | int | newval | ) | [protected] |
| 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 | ) |
| 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] |
| 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] |
| 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:

Slider_button* Slider_gump::left_arrow [protected] |
Slider_button * Slider_gump::right_arrow [protected] |
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] |
int Slider_gump::max_val [protected] |
int Slider_gump::step_val [protected] |
int Slider_gump::val [protected] |
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.
1.5.1