A basic graphics package for the LPC4088 Display Module.

Dependents:   lpc4088_displaymodule_demo_sphere sampleGUI sampleEmptyGUI lpc4088_displaymodule_fs_aid ... more

Fork of DMBasicGUI by EmbeddedArtists AB

Embed: (wiki syntax)

« Back to documentation index

AppLauncher Class Reference

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 130 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:
xthe touched x coordinate
ythe touched y coordinate
pressedtrue 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 114 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 225 of file AppLauncher.cpp.