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

a rectangular box that can be clicked More...

#include <pushbox.hh>

Inheritance diagram for gltk::PushBox:
gltk::Focusable gltk::Widget gltk::Button

List of all members.

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

Detailed Description

a rectangular box that can be clicked

 All Classes Namespaces Files Functions Variables Enumerations Enumerator