![]() |
Public Member Functions | |
| sigc::connection | connect (const sigc::slot<bool>& slot, unsigned int interval, int priority=PRIORITY_DEFAULT) |
| Connects a timeout handler. | |
| sigc::connection Glib::SignalTimeout::connect | ( | const sigc::slot< bool > & | slot, | |
| unsigned int | interval, | |||
| int | priority = PRIORITY_DEFAULT | |||
| ) |
Connects a timeout handler.
Glib::signal_timeout().connect(sigc::ptr_fun(&timeout_handler), 1000);
const Glib::RefPtr<Glib::TimeoutSource> timeout_source = Glib::TimeoutSource::create(1000); timeout_source->connect(sigc::ptr_fun(&timeout_handler)); timeout_source->attach(Glib::MainContext::get_default());
| slot | A slot to call when interval elapsed. | |
| interval | The timeout in milliseconds. | |
| priority | The priority of the new event source. |