gltk 0.3
a C++ widget library built on GLUT
Public Member Functions | Protected Member Functions
gltk::CheckBox Class Reference

a checkbox that can be toggled on and off More...

#include <checkbox.hh>

Inheritance diagram for gltk::CheckBox:
gltk::Focusable gltk::Widget gltk::CheckButton

List of all members.

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.

Detailed Description

a checkbox that can be toggled on and off

CheckBox.png
 All Classes Namespaces Files Functions Variables Enumerations Enumerator