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

<title>App Class Reference</title>

App Class Reference

Base class for all Apps. More...

#include <App.h>

Inherited by AppColorPicker, AppLauncher, AppSlideShow, and AppTouchCalibration.

Public Member Functions

virtual bool setup ()
 Prepare the App before it is started.
virtual void runToCompletion ()=0
 Runs the App to completion.
virtual bool teardown ()
 Cleanup.

Detailed Description

Base class for all Apps.

The idea is that you can have multiple Apps in your program. Each App has three funtions:

setup() is called to let the App load all needed resources

runToCompletion() is called and will not return until the App exits

teardown() is called to let the App free allocated resources

For an example of Apps in use, see the AppLauncher class

Definition at line 32 of file App.h.


Member Function Documentation

virtual void runToCompletion (  ) [pure virtual]

Runs the App to completion.

This function should not return until the App has finished.

Implemented in AppColorPicker, AppLauncher, AppTouchCalibration, and AppSlideShow.

virtual 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 in AppColorPicker, AppLauncher, AppTouchCalibration, and AppSlideShow.

Definition at line 52 of file App.h.

virtual 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 in AppColorPicker, AppLauncher, AppTouchCalibration, and AppSlideShow.

Definition at line 68 of file App.h.