Function

Metalater_add

Declaration [src]

guint
meta_later_add (
  MetaLaterType when,
  GSourceFunc func,
  gpointer data,
  GDestroyNotify notify
)

Description [src]

Sets up a callback to be called at some later time. when determines the particular later occasion at which it is called. This is much like g_idle_add(), except that the functions interact properly with clutter event handling. If a “later” function is added from a clutter event handler, and is supposed to be run before the stage is redrawn, it will be run before that redraw of the stage, not the next one.

Parameters

when MetaLaterType
 

Enumeration value determining the phase at which to run the callback.

func GSourceFunc
 

Callback to run later.

data gpointer
 

Data to pass to the callback.

 The argument can be NULL.
 The data is owned by the caller of the function.
notify GDestroyNotify
 

Function to call to destroy data when it is no longer in use, or NULL.

Return value

Returns: guint
 

An integer ID (guaranteed to be non-zero) that can be used to cancel the callback and prevent it from being run.