DRAFT
This page discusses functions that are acting on Ecore's main loop itself or on events and infrastructure directly linked to it.
Most programs only need to start and end the main loop, the rest of the function discussed here are meant to be used in special situations, and with great care.
These constants are used through ecore to control the lifetime of callbacks. They are usually returned by the callback to indicate if the callback should be kept for future activations, if it should be cancelled, etc.
efl.Ecore.Mainloop.CALLBACK_CANCEL
- Remove the callback from the active list.efl.Ecore.Mainloop.CALLBACK_DONE
- Stop event handling.efl.Ecore.Mainloop.CALLBACK_PASS_ON
- Pass the event to the next handler.efl.Ecore.Mainloop.CALLBACK_RENEW
- Keep the callback active for future activation.Syntax
efl.Ecore.Mainloop.begin();
Runs the application main loop.
Syntax
var animatorTicked = efl.Ecore.Mainloop.getAnimatorTicked()
Return value
true
if an animator has been called, false
otherwise.Returns if an animator has ticked off during this loop iteration
Syntax
var isRunning = efl.Ecore.Mainloop.getNested()
Return value
Returns if the ecore_main_loop is running
Syntax
efl.Ecore.Mainloop.iterate()
Runs a single iteration of the main loop to process everything on the queue.
Syntax
efl.Ecore.Mainloop.quit()
Quits the main loop once all the events currently on the queue have been processed.