gltk
0.3
a C++ widget library built on GLUT
|
a checkbox that can be toggled on and off More...
#include <checkbox.hh>
Public Member Functions | |
sigc::signal< void > & | signal_toggled () |
signal for toggling event | |
bool | get_active () const |
get the state of the toggle | |
void | set_active (bool val=true) |
set the state of the toggle | |
Protected Member Functions | |
void | on_button_event (int button, int state, int x, int y) |
called for mouse button | |
bool | on_key_event (unsigned char key) |
called for key press | |
void | draw_checkbox (int x, int y, int w, int h) |
Draw checkbox at the center of specified area. |
a checkbox that can be toggled on and off