Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of DMBasicGUI by
AppLauncher Class Reference
An App example using a number of buttons to launch different Apps. More...
#include <AppLauncher.h>
Inherits App.
Public Member Functions | |
| virtual bool | setup () |
| Prepare the App before it is started. | |
| virtual void | runToCompletion () |
| Runs the App to completion. | |
| virtual bool | teardown () |
| Cleanup. | |
Detailed Description
An App example using a number of buttons to launch different Apps.
The purpose of this example is to demonstrate how to manage a set of Apps and launch them either as a result of clicked buttons or (in the case of the TouchCalibrationApp) after an extended press of the USER button on the back of the display module.
Definition at line 33 of file AppLauncher.h.
Member Function Documentation
| void runToCompletion | ( | ) | [virtual] |
Runs the App to completion.
This function should not return until the App has finished.
Implements App.
Definition at line 131 of file AppLauncher.cpp.
| bool setup | ( | ) | [virtual] |
Prepare the App before it is started.
This function can be implemented to allocate memory, load startup images or other time consuming preparations.
The return value is to let the caller now if the application can be started or not.
- Parameters:
-
x the touched x coordinate y the touched y coordinate pressed true if the user pressed the display
- Returns:
- true if the app can be started false if the setup failed
Reimplemented from App.
Definition at line 115 of file AppLauncher.cpp.
| bool teardown | ( | ) | [virtual] |
Cleanup.
Implement to free up the memory allocated in setup().
- Returns:
- true if the teardown finished successfully false if the teardown failed
Reimplemented from App.
Definition at line 220 of file AppLauncher.cpp.
Generated on Wed Jul 13 2022 03:01:51 by
1.7.2
