efl/src/lib/ecore/ecore_mainloop.eo

44 lines
1.6 KiB
Plaintext
Raw Normal View History

class Ecore_Mainloop (Eo.Base)
{
[[The Ecore Main Loop
Ecore is a clean and tiny event loop library with many modules to do lots of
convenient things for a programmer, to save time and effort. It's small and
lean, designed to work from embedded systems all the way up to large and
powerful multi-cpu workstations. The main loop has a number of primitives to
be used with its main loop. It serializes all the primitives and allows for
great responsiveness without the need for threads(or any other concurrency).
]]
legacy_prefix: null;
methods {
iterate {
[[Runs a single iteration of the main loop to process everything on the
queue.]]
}
iterate_may_block {
[[Runs a single iteration of the main loop to process everything on the
queue with block/non-blocking status.]]
return: int;
params {
may_block: int; [[A flag if the main loop has a possibility of blocking.]]
}
}
begin {
[[Runs the application main loop.]]
}
quit {
[[Quits the main loop once all the events currently on the queue have
been processed.]]
}
}
2014-07-31 22:38:40 -07:00
events {
idle,enter @restart; [[Event occurs once the main loop enters the idle state.]]
idle,exit @restart; [[Event occurs once the main loop exits the idle state.]]
idle @restart; [[Event occurs once the main loop is idler. Be carefull, this will spin your CPU high if you keep listening on this event.]]
2014-07-31 22:38:40 -07:00
/* TODO: All of the legacy ecore events. (Ecore.h header) */
}
implements {
Eo.Base.constructor;
}
}