#include <CUIEventLoop.h>
Public Member Functions | |
void | SetScreen (CUIScreen *aScreen) |
Sets the current MUIScreen for event dispatching. | |
CUIScreen * | GetScreen () |
Returns the pointer to CUIScreen interface of current screen. | |
void | RunOneStep () |
Reads input events once tries to dispatch them to current screen. | |
void | Run () |
Keeps executing RunOneStep() until iExit is set to true. | |
Static Public Member Functions | |
CUIEventLoop & | GetEventLoop () |
Returns the reference to default application event loop. | |
Public Attributes | |
MUIEventLoopEvents * | iObserver |
bool | iExit |
bool | iForceFullRedraw |
This class reads the input from MInputReader and dispatches the events to the active CUIScreen. If an event was consumed ( HandleXXX() method returned true ), the virtual screen is automatically flushed to the frame buffer.
There could be one and only one event loop in the application. The reference to default event loop could be obtained via static GetEventLoop() method
|
Sets the current MUIScreen for event dispatching. TTUIInit() function should set the first active application screen using this method |
|
If set to true, exits this event loop |
|
If set to true, causes full redraw of current screen before flushing the virtual buffer.
|
|
Observer for events |