glibmm
2.34.1
|
#include <glibmm/main.h>
Public Member Functions | |
sigc::connection | connect (const sigc::slot< bool >& slot, int priority=PRIORITY_DEFAULT_IDLE) |
Connects an idle handler. | |
void | connect_once (const sigc::slot< void >& slot, int priority=PRIORITY_DEFAULT_IDLE) |
Connects an idle handler that runs only once. | |
sigc::connection Glib::SignalIdle::connect | ( | const sigc::slot< bool > & | slot, |
int | priority = PRIORITY_DEFAULT_IDLE |
||
) |
Connects an idle handler.
is equivalent to:
slot | A slot to call when the main loop is idle. If idle_handler() returns false the handler is disconnected. |
priority | The priority of the new event source. |
void Glib::SignalIdle::connect_once | ( | const sigc::slot< void > & | slot, |
int | priority = PRIORITY_DEFAULT_IDLE |
||
) |
Connects an idle handler that runs only once.
This method takes a function pointer to a function with a void return and no parameters. After running once it is not called again.
slot | A slot to call when the main loop is idle. For example: void on_idle_once()
|
priority | The priority of the new event source. |