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

A timer signal. More...

#include <timeout.hh>

List of all members.

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.

Detailed Description

A timer signal.

SignalTimeout is a system signal that can be scheduled to call a slot after a specified amount of time.


Member Function Documentation

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.

Parameters:
slotA slot to call when interval has elapsed.
intervalThe timeout in milliseconds.
 All Classes Namespaces Files Functions Variables Enumerations Enumerator