GLUI_Button Class Reference

#include <glui.h>

Inheritance diagram for GLUI_Button:

Inheritance graph
[legend]
Collaboration diagram for GLUI_Button:

Collaboration graph
[legend]

List of all members.

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 draw (int x, int y)
void draw_pressed (void)
void draw_text (int sunken)
void update_size (void)
 GLUI_Button (GLUI_Node *parent, const char *name, int obj_id=-1, GLUI_CB cb=GLUI_CB())
 GLUI_Button (void)

Public Attributes

bool currently_inside

Protected Member Functions

void common_init (void)


Detailed Description

An onscreen, clickable button--an outlined label that can be clicked. When clicked, a button calls its GLUI_CB callback with its ID.

Definition at line 956 of file glui.h.


Constructor & Destructor Documentation

GLUI_Button::GLUI_Button ( GLUI_Node parent,
const char *  name,
int  obj_id = -1,
GLUI_CB  cb = GLUI_CB() 
)

Create a new button.

Parameters:
parent The panel our object is inside; or the main GLUI object.
name The text inside the button.
obj_id Optional ID number, to pass to the optional callback function.
callback Optional callback function, taking either the int ID or control.

GLUI_Button::GLUI_Button ( void   )  [inline]

Definition at line 982 of file glui.h.


Member Function Documentation

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

Reimplemented from GLUI_Control.

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

Reimplemented from GLUI_Control.

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

Reimplemented from GLUI_Control.

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

Reimplemented from GLUI_Control.

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

Implements GLUI_Control.

void GLUI_Button::draw_pressed ( void   ) 

void GLUI_Button::draw_text ( int  sunken  ) 

void GLUI_Button::update_size ( void   )  [virtual]

Reimplemented from GLUI_Control.

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

Definition at line 985 of file glui.h.


Member Data Documentation

bool GLUI_Button::currently_inside

Definition at line 959 of file glui.h.


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