Timeout

Constructors

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

Creates a new timeout cycle with the default priority, GPriority.DEFAULT.

this
this(Duration interval, bool delegate() dlg, bool fireNow)
Undocumented in source.
this
this(uint interval, bool delegate() dlg, GPriority priority, bool fireNow)

Creates a new timeout cycle.

this
this(Duration interval, bool delegate() dlg, GPriority priority, bool fireNow)
Undocumented in source.
this
this(bool delegate() dlg, uint seconds, bool fireNow)

Creates a new timeout cycle with the default priority, GPriority.DEFAULT.

this
this(bool delegate() dlg, Duration seconds, bool fireNow)
Undocumented in source.
this
this(bool delegate() dlg, uint seconds, GPriority priority, bool fireNow)

Creates a new timeout cycle.

this
this(bool delegate() dlg, Duration seconds, GPriority priority, bool fireNow)
Undocumented in source.

Destructor

~this
~this()

Removes the timeout from gtk

Members

Functions

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

Adds a new delegate to this timeout cycle

stop
void stop()

Removes the timeout from gtk

Static functions

add
uint add(uint interval, GSourceFunc function_, void* data)

Sets a function to be called at regular intervals, with the default priority, #G_PRIORITY_DEFAULT. The function is called repeatedly until it returns %FALSE, at which point the timeout is automatically destroyed and the function will not be called again. The first call to the function will be at the end of the first @interval.

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

Sets a function to be called at regular intervals, with the given priority. The function is called repeatedly until it returns %FALSE, at which point the timeout is automatically destroyed and the function will not be called again. The @notify function is called when the timeout is destroyed. The first call to the function will be at the end of the first @interval.

addSeconds
uint addSeconds(uint interval, GSourceFunc function_, void* data)

Sets a function to be called at regular intervals with the default priority, #G_PRIORITY_DEFAULT. The function is called repeatedly until it returns %FALSE, at which point the timeout is automatically destroyed and the function will not be called again.

addSecondsFull
uint addSecondsFull(int priority, uint interval, GSourceFunc function_, void* data, GDestroyNotify notify)

Sets a function to be called at regular intervals, with @priority. The function is called repeatedly until it returns %FALSE, at which point the timeout is automatically destroyed and the function will not be called again.

destroyTimeoutNotify
void destroyTimeoutNotify(Timeout timeout)
Undocumented in source. Be warned that the author may not have intended to support it.
sourceNew
Source sourceNew(uint interval)

Creates a new timeout source.

sourceNewSeconds
Source sourceNewSeconds(uint interval)

Creates a new timeout source.

timeoutCallback
bool timeoutCallback(Timeout timeout)

The callback execution from glib

Meta