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

GLUI_Checkbox Class Reference

#include <glui.h>

Inheritance diagram for GLUI_Checkbox:

GLUI_Control GLUI_Node List of all members.

Detailed Description

A checkbox, which can be checked on or off. Can be linked to an int value, which gets 1 for on and 0 for off.


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


Constructor & Destructor Documentation

GLUI_Checkbox::GLUI_Checkbox GLUI_Node parent,
const char *  name,
int *  value_ptr = NULL,
int  id = -1,
GLUI_CB  callback = GLUI_CB()
 

Create a new checkbox object.

Parameters:
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").
id Optional ID number, to pass to the optional callback function.
callback Optional callback function, taking either the int ID or control.

GLUI_Checkbox::GLUI_Checkbox void   )  [inline]
 


Member Function Documentation

void GLUI_Checkbox::common_init void   )  [inline, protected]
 

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   ) 
 

int GLUI_Checkbox::key_handler unsigned char  key,
int  modifiers
[virtual]
 

Reimplemented from GLUI_Control.

int GLUI_Checkbox::mouse_down_handler int  local_x,
int  local_y
[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::mouse_up_handler int  local_x,
int  local_y,
bool  inside
[virtual]
 

Reimplemented from GLUI_Control.

void GLUI_Checkbox::set_int_val int  new_val  )  [virtual]
 

Reimplemented from GLUI_Control.

void GLUI_Checkbox::update_size void   )  [virtual]
 

Reimplemented from GLUI_Control.


Member Data Documentation

bool GLUI_Checkbox::currently_inside
 

int GLUI_Checkbox::orig_value
 

int GLUI_Checkbox::text_x_offset
 


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