#include <glui.h>


Public Member Functions | |
| 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 | update_size (void) |
| void | draw (int x, int y) |
| int | mouse_over (int state, int x, int y) |
| void | set_int_val (int new_val) |
| void | dump (FILE *output) |
| int | add_item (int obj_id, char *text) |
| int | delete_item (const char *text) |
| int | delete_item (int obj_id) |
| int | sort_items (void) |
| int | do_selection (int item) |
| GLUI_Listbox_Item * | get_item_ptr (const char *text) |
| GLUI_Listbox_Item * | get_item_ptr (int obj_id) |
| GLUI_Listbox (GLUI_Node *parent, const char *name, int *live_var=NULL, int obj_id=-1, GLUI_CB callback=GLUI_CB()) | |
| GLUI_Listbox (void) | |
Public Attributes | |
| GLUI_String | curr_text |
| GLUI_Listbox_Item | items_list |
| int | depressed |
| int | orig_value |
| bool | currently_inside |
| int | text_x_offset |
| int | title_x_offset |
| int | glut_menu_id |
Protected Member Functions | |
| bool | recalculate_item_width (void) |
| void | common_init () |
| ~GLUI_Listbox () | |
Definition at line 2320 of file glui.h.
| GLUI_Listbox::GLUI_Listbox | ( | GLUI_Node * | parent, | |
| const char * | name, | |||
| int * | live_var = NULL, |
|||
| int | obj_id = -1, |
|||
| GLUI_CB | callback = GLUI_CB() | |||
| ) |
| GLUI_Listbox::~GLUI_Listbox | ( | ) | [protected] |
| int GLUI_Listbox::mouse_down_handler | ( | int | local_x, | |
| int | local_y | |||
| ) | [virtual] |
Reimplemented from GLUI_Control.
| int GLUI_Listbox::mouse_up_handler | ( | int | local_x, | |
| int | local_y, | |||
| bool | inside | |||
| ) | [virtual] |
Reimplemented from GLUI_Control.
| int GLUI_Listbox::mouse_held_down_handler | ( | int | local_x, | |
| int | local_y, | |||
| bool | inside | |||
| ) | [virtual] |
Reimplemented from GLUI_Control.
| int GLUI_Listbox::key_handler | ( | unsigned char | key, | |
| int | modifiers | |||
| ) | [virtual] |
Reimplemented from GLUI_Control.
| int GLUI_Listbox::special_handler | ( | int | key, | |
| int | modifiers | |||
| ) | [virtual] |
Reimplemented from GLUI_Control.
| void GLUI_Listbox::update_size | ( | void | ) | [virtual] |
Reimplemented from GLUI_Control.
| void GLUI_Listbox::draw | ( | int | x, | |
| int | y | |||
| ) | [virtual] |
Implements GLUI_Control.
| int GLUI_Listbox::mouse_over | ( | int | state, | |
| int | x, | |||
| int | y | |||
| ) | [virtual] |
Reimplemented from GLUI_Control.
| void GLUI_Listbox::set_int_val | ( | int | new_val | ) | [virtual] |
Reimplemented from GLUI_Control.
| void GLUI_Listbox::dump | ( | FILE * | output | ) |
| int GLUI_Listbox::add_item | ( | int | obj_id, | |
| char * | text | |||
| ) |
| int GLUI_Listbox::delete_item | ( | const char * | text | ) |
| int GLUI_Listbox::delete_item | ( | int | obj_id | ) |
| int GLUI_Listbox::sort_items | ( | void | ) |
| int GLUI_Listbox::do_selection | ( | int | item | ) |
| GLUI_Listbox_Item* GLUI_Listbox::get_item_ptr | ( | const char * | text | ) |
| GLUI_Listbox_Item* GLUI_Listbox::get_item_ptr | ( | int | obj_id | ) |
| bool GLUI_Listbox::recalculate_item_width | ( | void | ) | [protected] |
Change w and return true if we need to be widened to fit the current item.
1.5.3