add_full
Description:
[ Version ( since = "0.4" ) ]
public uint add_full (int priority, uint interval, owned SourceFunc func)
Sets a function to be called at regular intervals holding the Clutter threads lock, with the given priority.
The function is called repeatedly until it returns false
, at which point the timeout is automatically removed and the function
will not be called again. The notify
function is called when the timeout is removed.
The first call to the function will be at the end of the first interval
.
It is important to note that, due to how the Clutter main loop is implemented, the timing will not be accurate and it will not try to "keep up" with the interval.
See also add_full.
Parameters:
priority |
the priority of the timeout source. Typically this will be in the range between DEFAULT and HIGH. |
interval |
the time between calls to the function, in milliseconds |
func |
function to call |
data |
data to pass to the function |
notify |
function to call when the timeout source is removed |
Returns:
the ID (greater than 0) of the event source. |