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
AppColorPicker Class Reference
An App example letting the user pick a color from a colored area. More...
#include <AppColorPicker.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. | |
void | addResource (Resources id, Resource *res) |
Specifies the resource to use. |
Detailed Description
An App example letting the user pick a color from a colored area.
The hex value in RGB565 format is shown as well as a larger sample of the selected color.
The purpose of this example is to show let the user test the touch panel and it can be helpful when selecting colors for e.g. backgrounds.
Definition at line 34 of file AppColorPicker.h.
Member Function Documentation
void addResource | ( | Resources | id, |
Resource * | res | ||
) |
Specifies the resource to use.
Adds a resource for a specific id. This allows the user program to select e.g. which image to use and if it should be loaded from a file or an array.
- Parameters:
-
id the identifier res the resource
Definition at line 206 of file AppColorPicker.cpp.
void runToCompletion | ( | ) | [virtual] |
Runs the App to completion.
This function should not return until the App has finished.
Implements App.
Definition at line 125 of file AppColorPicker.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 114 of file AppColorPicker.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 181 of file AppColorPicker.cpp.
Generated on Tue Jul 12 2022 21:27:04 by 1.7.2