gltk 0.3
a C++ widget library built on GLUT
Static Public Member Functions
gltk::SignalIdle Class Reference

calling a slot when system is free SignalIdle provides a system signal that is emitted when the system is idle. More...

#include <idle.hh>

List of all members.

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.

Detailed Description

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.


Member Function Documentation

sigc::connection SignalIdle::connect ( sigc::slot0< bool > const &  slot) [static]

Connects an idle handler.

Returning false from the slot will sever the connection.

 All Classes Namespaces Files Functions Variables Enumerations Enumerator