|
gltk
0.3
a C++ widget library built on GLUT
|
A timer signal. More...
#include <timeout.hh>
Static Public Member Functions | |
| static sigc::connection | connect (sigc::slot0< bool > const &slot, unsigned interval) |
| Connects a timeout handler. | |
| static void | connect_once (sigc::slot0< void > const &slot, unsigned interval) |
| Connects a timeout handler that runs only once. | |
A timer signal.
SignalTimeout is a system signal that can be scheduled to call a slot after a specified amount of time.
| sigc::connection SignalTimeout::connect | ( | sigc::slot0< bool > const & | slot, |
| unsigned | interval | ||
| ) | [static] |
Connects a timeout handler.
Returning false from the slot will sever the connection.
| slot | A slot to call when interval has elapsed. |
| interval | The timeout in milliseconds. |