|
gltk
0.3
a C++ widget library built on GLUT
|
a rectangular box that can be clicked More...
#include <pushbox.hh>
Public Member Functions | |
| sigc::signal< void > & | signal_clicked () |
| signal when the box is clicked | |
| sigc::signal< void > & | signal_pushed () |
| signal when the box is pushed | |
| void | set_box_width (int bw) |
| set the thickness of box border | |
Protected Member Functions | |
| void | on_draw () |
| called to implement draw | |
| void | get_preferred_width (int &min, int &nat) const |
| obtain minimum & natural widths | |
| void | get_preferred_height (int &min, int &nat) const |
| obtain minimum & natural heights | |
| 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 | |
a rectangular box that can be clicked