gltk
0.3
a C++ widget library built on GLUT
|
calling a slot when system is free SignalIdle provides a system signal that is emitted when the system is idle. More...
#include <idle.hh>
Static Public Member Functions | |
static sigc::connection | connect (sigc::slot0< bool > const &slot) |
Connects an idle handler. | |
static void | connect_once (sigc::slot0< void > const &slot) |
Connects an idle handler that runs only once. |
calling a slot when system is free SignalIdle provides a system signal that is emitted when the system is idle.
Like a regular signal It can be connected to multiple slots.
sigc::connection SignalIdle::connect | ( | sigc::slot0< bool > const & | slot | ) | [static] |
Connects an idle handler.
Returning false from the slot will sever the connection.