#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) |
| void | update_size (void) |
| void | draw (int x, int y) |
| void | draw_active_area (void) |
| void | draw_empty_box (void) |
| void | set_int_val (int new_val) |
| GLUI_Checkbox (GLUI_Node *parent, const char *name, int *value_ptr=NULL, int obj_id=-1, GLUI_CB callback=GLUI_CB()) | |
| GLUI_Checkbox (void) | |
Public Attributes | |
| int | orig_value |
| bool | currently_inside |
| int | text_x_offset |
Protected Member Functions | |
| void | common_init (void) |
Definition at line 1005 of file glui.h.
| GLUI_Checkbox::GLUI_Checkbox | ( | GLUI_Node * | parent, | |
| const char * | name, | |||
| int * | value_ptr = NULL, |
|||
| int | obj_id = -1, |
|||
| GLUI_CB | callback = GLUI_CB() | |||
| ) |
Create a new checkbox object.
| parent | The panel our object is inside; or the main GLUI object. | |
| name | Label next to our checkbox. | |
| value_ptr | Optional integer value to attach to this checkbox. When the checkbox is checked or unchecked, *value_ptr will also be changed. ("Live Vars"). | |
| obj_id | Optional ID number, to pass to the optional callback function. | |
| callback | Optional callback function, taking either the int ID or control. |
| int GLUI_Checkbox::mouse_down_handler | ( | int | local_x, | |
| int | local_y | |||
| ) | [virtual] |
Reimplemented from GLUI_Control.
| int GLUI_Checkbox::mouse_up_handler | ( | int | local_x, | |
| int | local_y, | |||
| bool | inside | |||
| ) | [virtual] |
Reimplemented from GLUI_Control.
| int GLUI_Checkbox::mouse_held_down_handler | ( | int | local_x, | |
| int | local_y, | |||
| bool | inside | |||
| ) | [virtual] |
Reimplemented from GLUI_Control.
| int GLUI_Checkbox::key_handler | ( | unsigned char | key, | |
| int | modifiers | |||
| ) | [virtual] |
Reimplemented from GLUI_Control.
| void GLUI_Checkbox::update_size | ( | void | ) | [virtual] |
Reimplemented from GLUI_Control.
| void GLUI_Checkbox::draw | ( | int | x, | |
| int | y | |||
| ) | [virtual] |
Implements GLUI_Control.
| void GLUI_Checkbox::draw_active_area | ( | void | ) |
| void GLUI_Checkbox::draw_empty_box | ( | void | ) |
| void GLUI_Checkbox::set_int_val | ( | int | new_val | ) | [virtual] |
Reimplemented from GLUI_Control.
| void GLUI_Checkbox::common_init | ( | void | ) | [inline, protected] |
1.5.3