#include <glui.h>
Inherits GLUI_Control.
Public Member Functions | |
GLUI_Scrollbar (GLUI_Node *parent, const char *name, int horz_vert=GLUI_SCROLL_HORIZONTAL, int data_type=GLUI_SCROLL_INT, int id=-1, GLUI_CB callback=GLUI_CB()) | |
GLUI_Scrollbar (GLUI_Node *parent, const char *name, int horz_vert, int *live_var, int id=-1, GLUI_CB callback=GLUI_CB()) | |
GLUI_Scrollbar (GLUI_Node *parent, const char *name, int horz_vert, float *live_var, int id=-1, GLUI_CB callback=GLUI_CB()) | |
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_int_limits (int low, int high, int limit_type=GLUI_LIMIT_CLAMP) |
void | set_float_limits (float low, float 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 | draw_scroll (void) |
void | do_click (void) |
void | idle (void) |
bool | needs_idle (void) const |
void | set_int_val (int new_val) |
void | set_float_val (float new_val) |
void | increase_growth (void) |
void | reset_growth (void) |
void | set_speed (float speed) |
void | update_scroll_parameters () |
void | set_object_callback (GLUI_CB cb=GLUI_CB(), GLUI_Control *obj=NULL) |
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 |
Used to prevent repeated callbacks. | |
float | last_float_val |
int | first_callback |
float | user_speed |
float | float_min |
float | float_max |
int | int_min |
int | int_max |
int | horizontal |
double | last_update_time |
GLUI_Time() we last advanced scrollbar. | |
double | velocity_limit |
Maximum distance to advance per second. | |
int | box_length |
int | box_start_position |
int | box_end_position |
int | track_length |
void * | associated_object |
GLUI_CB | object_cb |
Protected Member Functions | |
void | common_init (void) |
void | common_construct (GLUI_Node *parent, const char *name, int horz_vert, int data_type, void *live_var, int id, GLUI_CB callback) |
virtual void | draw_scroll_arrow (int arrowtype, int x, int y) |
virtual void | draw_scroll_box (int x, int y, int w, int h) |
GLUI_Scrollbar::GLUI_Scrollbar | ( | GLUI_Node * | parent, | |
const char * | name, | |||
int | horz_vert = GLUI_SCROLL_HORIZONTAL , |
|||
int | data_type = GLUI_SCROLL_INT , |
|||
int | id = -1 , |
|||
GLUI_CB | callback = GLUI_CB() | |||
) |
GLUI_Scrollbar::GLUI_Scrollbar | ( | GLUI_Node * | parent, | |
const char * | name, | |||
int | horz_vert, | |||
int * | live_var, | |||
int | id = -1 , |
|||
GLUI_CB | callback = GLUI_CB() | |||
) |
GLUI_Scrollbar::GLUI_Scrollbar | ( | GLUI_Node * | parent, | |
const char * | name, | |||
int | horz_vert, | |||
float * | live_var, | |||
int | id = -1 , |
|||
GLUI_CB | callback = GLUI_CB() | |||
) |
void GLUI_Scrollbar::common_construct | ( | GLUI_Node * | parent, | |
const char * | name, | |||
int | horz_vert, | |||
int | data_type, | |||
void * | live_var, | |||
int | id, | |||
GLUI_CB | callback | |||
) | [protected] |
void GLUI_Scrollbar::common_init | ( | void | ) | [protected] |
void GLUI_Scrollbar::do_callbacks | ( | void | ) |
void GLUI_Scrollbar::do_click | ( | void | ) |
void GLUI_Scrollbar::do_drag | ( | int | x, | |
int | y | |||
) |
void GLUI_Scrollbar::draw | ( | int | x, | |
int | y | |||
) | [virtual] |
Implements GLUI_Control.
void GLUI_Scrollbar::draw_pressed | ( | void | ) |
void GLUI_Scrollbar::draw_scroll | ( | void | ) |
virtual void GLUI_Scrollbar::draw_scroll_arrow | ( | int | arrowtype, | |
int | x, | |||
int | y | |||
) | [protected, virtual] |
virtual void GLUI_Scrollbar::draw_scroll_box | ( | int | x, | |
int | y, | |||
int | w, | |||
int | h | |||
) | [protected, virtual] |
void GLUI_Scrollbar::draw_text | ( | int | sunken | ) |
void GLUI_Scrollbar::draw_unpressed | ( | void | ) |
int GLUI_Scrollbar::find_arrow | ( | int | local_x, | |
int | local_y | |||
) |
void GLUI_Scrollbar::idle | ( | void | ) | [virtual] |
Reimplemented from GLUI_Control.
void GLUI_Scrollbar::increase_growth | ( | void | ) |
int GLUI_Scrollbar::key_handler | ( | unsigned char | key, | |
int | modifiers | |||
) | [virtual] |
Reimplemented from GLUI_Control.
int GLUI_Scrollbar::mouse_down_handler | ( | int | local_x, | |
int | local_y | |||
) | [virtual] |
Reimplemented from GLUI_Control.
int GLUI_Scrollbar::mouse_held_down_handler | ( | int | local_x, | |
int | local_y, | |||
bool | inside | |||
) | [virtual] |
Reimplemented from GLUI_Control.
int GLUI_Scrollbar::mouse_up_handler | ( | int | local_x, | |
int | local_y, | |||
bool | inside | |||
) | [virtual] |
Reimplemented from GLUI_Control.
bool GLUI_Scrollbar::needs_idle | ( | void | ) | const [virtual] |
Reimplemented from GLUI_Control.
void GLUI_Scrollbar::reset_growth | ( | void | ) |
void GLUI_Scrollbar::set_float_limits | ( | float | low, | |
float | high, | |||
int | limit_type = GLUI_LIMIT_CLAMP | |||
) |
void GLUI_Scrollbar::set_float_val | ( | float | new_val | ) | [virtual] |
Reimplemented from GLUI_Control.
void GLUI_Scrollbar::set_int_limits | ( | int | low, | |
int | high, | |||
int | limit_type = GLUI_LIMIT_CLAMP | |||
) |
void GLUI_Scrollbar::set_int_val | ( | int | new_val | ) | [virtual] |
Reimplemented from GLUI_Control.
void GLUI_Scrollbar::set_object_callback | ( | GLUI_CB | cb = GLUI_CB() , |
|
GLUI_Control * | obj = NULL | |||
) | [inline] |
void GLUI_Scrollbar::set_speed | ( | float | speed | ) | [inline] |
int GLUI_Scrollbar::special_handler | ( | int | key, | |
int | modifiers | |||
) | [virtual] |
Reimplemented from GLUI_Control.
void GLUI_Scrollbar::update_scroll_parameters | ( | ) |
void GLUI_Scrollbar::update_size | ( | void | ) | [virtual] |
Reimplemented from GLUI_Control.
float GLUI_Scrollbar::growth |
Used to prevent repeated callbacks.
GLUI_Time() we last advanced scrollbar.
Maximum distance to advance per second.