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

TTUIInit.h File Reference

Contains the definition of TTUIInit() function. More...

Go to the source code of this file.

Functions

int TTUIInit (int argc, char **argv)
 Serves as an entry point for user application. This function is called by the framework automatically.


Detailed Description

Contains the definition of TTUIInit() function.


Function Documentation

int TTUIInit int  argc,
char **  argv
 

Serves as an entry point for user application. This function is called by the framework automatically.

Parameters:
argc Number of command-line arguments, can be zero
argv Pointer to command line arguments array, can be NULL
TTUIInit() function should perform initial application initialisation. It should create a default CUIScreen and initialise the CUIEventLoop with it by calling the CUIEventLoop::GetEventLoop.SetScreen() method. An alternative is to call CUIScreen::DoModal() method that basically does the same.

If the return value is other than zero, the application is terminated, otherwise the defined current screen enters the modal state.

Note that that TTUIInit is not the same as main() function !!! main() function is implemented internally in the library and calls user-defined TTUIInint().


Generated on Fri Jul 15 16:46:44 2005 for TomTom GO User Interface library by doxygen 1.3.5