Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

GLUI_Scrollbar Class Reference

#include <glui.h>

Inheritance diagram for GLUI_Scrollbar:

GLUI_Control GLUI_Node List of all members.

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)

Constructor & Destructor Documentation

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()
 


Member Function Documentation

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   ) 
 

void GLUI_Scrollbar::draw_scroll_arrow int  arrowtype,
int  x,
int  y
[protected, 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.


Member Data Documentation

void* GLUI_Scrollbar::associated_object
 

int GLUI_Scrollbar::box_end_position
 

int GLUI_Scrollbar::box_length
 

int GLUI_Scrollbar::box_start_position
 

int GLUI_Scrollbar::callback_count
 

bool GLUI_Scrollbar::currently_inside
 

int GLUI_Scrollbar::data_type
 

int GLUI_Scrollbar::first_callback
 

float GLUI_Scrollbar::float_max
 

float GLUI_Scrollbar::float_min
 

float GLUI_Scrollbar::growth
 

float GLUI_Scrollbar::growth_exp
 

int GLUI_Scrollbar::horizontal
 

int GLUI_Scrollbar::int_max
 

int GLUI_Scrollbar::int_min
 

float GLUI_Scrollbar::last_float_val
 

int GLUI_Scrollbar::last_int_val
 

Used to prevent repeated callbacks.

double GLUI_Scrollbar::last_update_time
 

GLUI_Time() we last advanced scrollbar.

int GLUI_Scrollbar::last_x
 

int GLUI_Scrollbar::last_y
 

GLUI_CB GLUI_Scrollbar::object_cb
 

int GLUI_Scrollbar::state
 

int GLUI_Scrollbar::track_length
 

float GLUI_Scrollbar::user_speed
 

double GLUI_Scrollbar::velocity_limit
 

Maximum distance to advance per second.


The documentation for this class was generated from the following files:
Generated on Fri Sep 15 17:51:57 2006 for GLUI by doxygen 1.3.6