GLUI_List Class Reference

#include <glui.h>

Inheritance diagram for GLUI_List:

Inheritance graph
[legend]
Collaboration diagram for GLUI_List:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 GLUI_List (GLUI_Node *parent, bool scroll=false, int obj_id=-1, GLUI_CB callback=GLUI_CB())
 GLUI_List (GLUI_Node *parent, GLUI_String &live_var, bool scroll=false, int obj_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 activate (int how)
void deactivate (void)
void draw (int x, int y)
int mouse_over (int state, int x, int y)
int get_box_width ()
int find_word_break (int start, int direction)
int substring_width (const char *t, int start, int end)
int find_line (int x, int y)
void update_and_draw_text (void)
void draw_text (const char *t, int selected, int x, int y)
void update_size (void)
int add_item (int obj_id, char *text)
int delete_item (const char *text)
int delete_item (int obj_id)
int delete_all ()
GLUI_List_Itemget_item_ptr (const char *text)
GLUI_List_Itemget_item_ptr (int obj_id)
void dump (FILE *out, const char *text)
void set_start_line (int l)
int get_current_item ()
void set_click_type (int d)
void set_object_callback (GLUI_CB cb=GLUI_CB(), GLUI_Control *obj=NULL)

Static Public Member Functions

static void scrollbar_callback (GLUI_Control *)

Public Attributes

GLUI_String orig_text
int debug
int draw_text_only
int start_line
int num_lines
int curr_line
int visible_lines
GLUI_Scrollbarscrollbar
GLUI_List_Item items_list
GLUI_Controlassociated_object
GLUI_CB obj_cb
int cb_click_type
int last_line
int last_click_time

Protected Member Functions

void common_init ()
void common_construct (GLUI_Node *parent, GLUI_String *live_var, bool scroll, int obj_id, GLUI_CB callback)


Detailed Description

Definition at line 2093 of file glui.h.


Constructor & Destructor Documentation

GLUI_List::GLUI_List ( GLUI_Node parent,
bool  scroll = false,
int  obj_id = -1,
GLUI_CB  callback = GLUI_CB() 
)

GLUI_List::GLUI_List ( GLUI_Node parent,
GLUI_String live_var,
bool  scroll = false,
int  obj_id = -1,
GLUI_CB  callback = GLUI_CB() 
)


Member Function Documentation

int GLUI_List::mouse_down_handler ( int  local_x,
int  local_y 
) [virtual]

Reimplemented from GLUI_Control.

int GLUI_List::mouse_up_handler ( int  local_x,
int  local_y,
bool  inside 
) [virtual]

Reimplemented from GLUI_Control.

int GLUI_List::mouse_held_down_handler ( int  local_x,
int  local_y,
bool  inside 
) [virtual]

Reimplemented from GLUI_Control.

int GLUI_List::key_handler ( unsigned char  key,
int  modifiers 
) [virtual]

Reimplemented from GLUI_Control.

int GLUI_List::special_handler ( int  key,
int  modifiers 
) [virtual]

Reimplemented from GLUI_Control.

void GLUI_List::activate ( int  how  )  [virtual]

Reimplemented from GLUI_Control.

void GLUI_List::deactivate ( void   )  [virtual]

Reimplemented from GLUI_Control.

void GLUI_List::draw ( int  x,
int  y 
) [virtual]

Implements GLUI_Control.

int GLUI_List::mouse_over ( int  state,
int  x,
int  y 
) [virtual]

Reimplemented from GLUI_Control.

int GLUI_List::get_box_width (  ) 

int GLUI_List::find_word_break ( int  start,
int  direction 
)

int GLUI_List::substring_width ( const char *  t,
int  start,
int  end 
)

int GLUI_List::find_line ( int  x,
int  y 
)

void GLUI_List::update_and_draw_text ( void   ) 

void GLUI_List::draw_text ( const char *  t,
int  selected,
int  x,
int  y 
)

void GLUI_List::update_size ( void   )  [virtual]

Reimplemented from GLUI_Control.

int GLUI_List::add_item ( int  obj_id,
char *  text 
)

int GLUI_List::delete_item ( const char *  text  ) 

int GLUI_List::delete_item ( int  obj_id  ) 

int GLUI_List::delete_all (  ) 

GLUI_List_Item* GLUI_List::get_item_ptr ( const char *  text  ) 

GLUI_List_Item* GLUI_List::get_item_ptr ( int  obj_id  ) 

void GLUI_List::dump ( FILE *  out,
const char *  text 
)

Reimplemented from GLUI_Node.

void GLUI_List::set_start_line ( int  l  )  [inline]

Definition at line 2156 of file glui.h.

static void GLUI_List::scrollbar_callback ( GLUI_Control  )  [static]

int GLUI_List::get_current_item (  )  [inline]

Definition at line 2158 of file glui.h.

void GLUI_List::set_click_type ( int  d  )  [inline]

Definition at line 2159 of file glui.h.

void GLUI_List::set_object_callback ( GLUI_CB  cb = GLUI_CB(),
GLUI_Control obj = NULL 
) [inline]

Definition at line 2161 of file glui.h.

void GLUI_List::common_init ( void   )  [inline, protected]

Definition at line 2165 of file glui.h.

void GLUI_List::common_construct ( GLUI_Node parent,
GLUI_String live_var,
bool  scroll,
int  obj_id,
GLUI_CB  callback 
) [protected]


Member Data Documentation

GLUI_String GLUI_List::orig_text

Definition at line 2110 of file glui.h.

int GLUI_List::debug

Definition at line 2111 of file glui.h.

int GLUI_List::draw_text_only

Definition at line 2112 of file glui.h.

int GLUI_List::start_line

Definition at line 2113 of file glui.h.

int GLUI_List::num_lines

Definition at line 2114 of file glui.h.

int GLUI_List::curr_line

Definition at line 2115 of file glui.h.

int GLUI_List::visible_lines

Definition at line 2116 of file glui.h.

GLUI_Scrollbar* GLUI_List::scrollbar

Definition at line 2117 of file glui.h.

GLUI_List_Item GLUI_List::items_list

Definition at line 2118 of file glui.h.

GLUI_Control* GLUI_List::associated_object

Definition at line 2119 of file glui.h.

GLUI_CB GLUI_List::obj_cb

Definition at line 2120 of file glui.h.

int GLUI_List::cb_click_type

Definition at line 2121 of file glui.h.

int GLUI_List::last_line

Definition at line 2122 of file glui.h.

int GLUI_List::last_click_time

Definition at line 2123 of file glui.h.


The documentation for this class was generated from the following file:
Generated on Thu Aug 30 11:04:42 2007 for SPRING Mac by  doxygen 1.5.3