Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

CUIEventLoop Class Reference

Represents main application event loop. More...

#include <CUIEventLoop.h>

List of all members.

Public Member Functions

void SetScreen (CUIScreen *aScreen)
 Sets the current MUIScreen for event dispatching.

CUIScreenGetScreen ()
 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

CUIEventLoopGetEventLoop ()
 Returns the reference to default application event loop.


Public Attributes

MUIEventLoopEventsiObserver
bool iExit
bool iForceFullRedraw


Detailed Description

Represents main application event loop.

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


Member Function Documentation

void CUIEventLoop::SetScreen CUIScreen aScreen  ) 
 

Sets the current MUIScreen for event dispatching.

TTUIInit() function should set the first active application screen using this method


Member Data Documentation

bool CUIEventLoop::iExit
 

If set to true, exits this event loop

bool CUIEventLoop::iForceFullRedraw
 

If set to true, causes full redraw of current screen before flushing the virtual buffer.

Warning:
The full screen redraw is a time consuming task. Use it only when you REALLY need it in order not to affect the performance of whole system

MUIEventLoopEvents* CUIEventLoop::iObserver
 

Observer for events


The documentation for this class was generated from the following file:
Generated on Fri Jul 15 16:46:44 2005 for TomTom GO User Interface library by doxygen 1.3.5