Idle

Constructors

this
this(bool delegate() dlg, bool fireNow)

Creates a new idle cycle.

this
this(bool delegate() dlg, GPriority priority, bool fireNow)

Creates a new idle cycle.

Destructor

~this
~this()

Removes the idle from gtk

Members

Functions

addListener
void addListener(bool delegate() dlg, bool fireNow)

Adds a new delegate to this idle cycle

stop
void stop()

Static functions

add
uint add(GSourceFunc funct, void* data)

Adds a function to be called whenever there are no higher priority events pending to the default main loop. The function is given the default idle priority, #G_PRIORITY_DEFAULT_IDLE. If the function returns %FALSE it is automatically removed from the list of event sources and will not be called again.

addFull
uint addFull(int priority, GSourceFunc funct, void* data, GDestroyNotify notify)

Adds a function to be called whenever there are no higher priority events pending. If the function returns %FALSE it is automatically removed from the list of event sources and will not be called again.

idleCallback
bool idleCallback(Idle idle)

The callback execution from glib

removeByData
bool removeByData(void* data)

Removes the idle function with the given data.

sourceNew
Source sourceNew()

Creates a new idle source.

Variables

idleID
uint idleID;

our idle ID

idleListeners
bool delegate()[] idleListeners;

Holds all idle delegates

Meta