#include <glui.h>
Inherits GLUI_Control.
Public Member Functions | |
GLUI_Spinner (GLUI_Node *parent, const char *name, int data_type=GLUI_SPINNER_INT, int id=-1, GLUI_CB callback=GLUI_CB()) | |
GLUI_Spinner (GLUI_Node *parent, const char *name, int *live_var, int id=-1, GLUI_CB callback=GLUI_CB()) | |
GLUI_Spinner (GLUI_Node *parent, const char *name, float *live_var, int id=-1, GLUI_CB callback=GLUI_CB()) | |
GLUI_Spinner (GLUI_Node *parent, const char *name, int data_type, void *live_var, int id=-1, GLUI_CB callback=GLUI_CB()) | |
GLUI_Spinner (void) | |
int | mouse_down_handler (int local_x, int local_y) |
int | mouse_up_handler (int local_x, int local_y, bool inside) |
int | mouse_held_down_handler (int local_x, int local_y, bool inside) |
int | key_handler (unsigned char key, int modifiers) |
int | special_handler (int key, int modifiers) |
void | draw (int x, int y) |
void | draw_pressed (void) |
void | draw_unpressed (void) |
void | draw_text (int sunken) |
void | update_size (void) |
void | set_float_limits (float low, float high, int limit_type=GLUI_LIMIT_CLAMP) |
void | set_int_limits (int low, int high, int limit_type=GLUI_LIMIT_CLAMP) |
int | find_arrow (int local_x, int local_y) |
void | do_drag (int x, int y) |
void | do_callbacks (void) |
void | do_click (void) |
void | idle (void) |
bool | needs_idle (void) const |
const char * | get_text (void) |
void | set_float_val (float new_val) |
void | set_int_val (int new_val) |
float | get_float_val (void) |
int | get_int_val (void) |
void | increase_growth (void) |
void | reset_growth (void) |
void | set_speed (float speed) |
Public Attributes | |
bool | currently_inside |
int | state |
float | growth |
float | growth_exp |
int | last_x |
int | last_y |
int | data_type |
int | callback_count |
int | last_int_val |
float | last_float_val |
int | first_callback |
float | user_speed |
GLUI_EditText * | edittext |
Protected Member Functions | |
void | common_init () |
void | common_construct (GLUI_Node *parent, const char *name, int data_type, void *live_var, int id, GLUI_CB callback) |
GLUI_Spinner::GLUI_Spinner | ( | GLUI_Node * | parent, | |
const char * | name, | |||
int | data_type = GLUI_SPINNER_INT , |
|||
int | id = -1 , |
|||
GLUI_CB | callback = GLUI_CB() | |||
) |
GLUI_Spinner::GLUI_Spinner | ( | GLUI_Node * | parent, | |
const char * | name, | |||
int * | live_var, | |||
int | id = -1 , |
|||
GLUI_CB | callback = GLUI_CB() | |||
) |
GLUI_Spinner::GLUI_Spinner | ( | GLUI_Node * | parent, | |
const char * | name, | |||
float * | live_var, | |||
int | id = -1 , |
|||
GLUI_CB | callback = GLUI_CB() | |||
) |
GLUI_Spinner::GLUI_Spinner | ( | GLUI_Node * | parent, | |
const char * | name, | |||
int | data_type, | |||
void * | live_var, | |||
int | id = -1 , |
|||
GLUI_CB | callback = GLUI_CB() | |||
) |
GLUI_Spinner::GLUI_Spinner | ( | void | ) | [inline] |
void GLUI_Spinner::common_construct | ( | GLUI_Node * | parent, | |
const char * | name, | |||
int | data_type, | |||
void * | live_var, | |||
int | id, | |||
GLUI_CB | callback | |||
) | [protected] |
void GLUI_Spinner::common_init | ( | void | ) | [inline, protected] |
void GLUI_Spinner::do_callbacks | ( | void | ) |
void GLUI_Spinner::do_click | ( | void | ) |
void GLUI_Spinner::do_drag | ( | int | x, | |
int | y | |||
) |
void GLUI_Spinner::draw | ( | int | x, | |
int | y | |||
) | [virtual] |
Implements GLUI_Control.
void GLUI_Spinner::draw_pressed | ( | void | ) |
void GLUI_Spinner::draw_text | ( | int | sunken | ) |
void GLUI_Spinner::draw_unpressed | ( | void | ) |
int GLUI_Spinner::find_arrow | ( | int | local_x, | |
int | local_y | |||
) |
float GLUI_Spinner::get_float_val | ( | void | ) | [virtual] |
Reimplemented from GLUI_Control.
int GLUI_Spinner::get_int_val | ( | void | ) | [virtual] |
Reimplemented from GLUI_Control.
const char* GLUI_Spinner::get_text | ( | void | ) |
void GLUI_Spinner::idle | ( | void | ) | [virtual] |
Reimplemented from GLUI_Control.
void GLUI_Spinner::increase_growth | ( | void | ) |
int GLUI_Spinner::key_handler | ( | unsigned char | key, | |
int | modifiers | |||
) | [virtual] |
Reimplemented from GLUI_Control.
int GLUI_Spinner::mouse_down_handler | ( | int | local_x, | |
int | local_y | |||
) | [virtual] |
Reimplemented from GLUI_Control.
int GLUI_Spinner::mouse_held_down_handler | ( | int | local_x, | |
int | local_y, | |||
bool | inside | |||
) | [virtual] |
Reimplemented from GLUI_Control.
int GLUI_Spinner::mouse_up_handler | ( | int | local_x, | |
int | local_y, | |||
bool | inside | |||
) | [virtual] |
Reimplemented from GLUI_Control.
bool GLUI_Spinner::needs_idle | ( | void | ) | const [virtual] |
Reimplemented from GLUI_Control.
void GLUI_Spinner::reset_growth | ( | void | ) |
void GLUI_Spinner::set_float_limits | ( | float | low, | |
float | high, | |||
int | limit_type = GLUI_LIMIT_CLAMP | |||
) |
void GLUI_Spinner::set_float_val | ( | float | new_val | ) | [virtual] |
Reimplemented from GLUI_Control.
void GLUI_Spinner::set_int_limits | ( | int | low, | |
int | high, | |||
int | limit_type = GLUI_LIMIT_CLAMP | |||
) |
void GLUI_Spinner::set_int_val | ( | int | new_val | ) | [virtual] |
Reimplemented from GLUI_Control.
void GLUI_Spinner::set_speed | ( | float | speed | ) | [inline] |
int GLUI_Spinner::special_handler | ( | int | key, | |
int | modifiers | |||
) | [virtual] |
Reimplemented from GLUI_Control.
void GLUI_Spinner::update_size | ( | void | ) | [virtual] |
Reimplemented from GLUI_Control.
float GLUI_Spinner::growth |
float GLUI_Spinner::growth_exp |
float GLUI_Spinner::user_speed |