Inheritance diagram for CmAppl:
Public Methods | |
virtual void | start (int argc, char **argv)=0 |
The program's starting point for MGUI programs. | |
Static Public Methods | |
void | end (int code) |
Terminates the program freeing allocated resources. | |
Protected Methods | |
CmAppl (void) | |
Friends | |
void | MGUIMain (int argc, char **argv) |
The program's starting point. |
Provides the application's starting and terminating methods.
The application program must define a derived instance to provide the pure virtual method start(). The program can be terminated at any point by calling the static method CmAppl::end(code);
|
|
|
Terminates the program freeing allocated resources. This is the recommended method to close your MGUI application. It frees all resources allocated by the MGUI library and then calls the standard exit function passing it 'code' as exit code. It's a static method so you can call it from wherever you are in the program code. |
|
The program's starting point for MGUI programs. It receives the main's ordinary arguments argc and argv. |
|
The program's starting point. Due to compatibility problems with the Windows platform, an MGUI program cannot start with the standard main() function. This function must be provided by the application and it's called internally by the library at startup. The parameters received by the function are exactly the same as the ones used in the standard C main(). |