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
Diff: Application/AppLauncher.h
- Revision:
- 5:f4de114c31c3
- Parent:
- 3:3fabfe3339b8
- Child:
- 8:19a6b70d42b1
--- a/Application/AppLauncher.h Fri Dec 19 16:40:30 2014 +0100 +++ b/Application/AppLauncher.h Sun Dec 21 13:53:07 2014 +0100 @@ -36,10 +36,20 @@ AppLauncher(); ~AppLauncher(); + enum CommonApplicationIDs { + CalibrationApp = 0xffff, + }; + virtual bool setup(); virtual void runToCompletion(); virtual bool teardown(); + void setAppCreatorFunc(App*(*callback)(uint32_t buttonID)); + + bool addButton(uint32_t buttonID, const char* caption); + bool addImageButton(uint32_t buttonID, const char* imgUp, const char* imgDown = 0); + bool addImageButton(uint32_t buttonID, const unsigned char* imgUp, unsigned int imgUpSize, const unsigned char* imgDown = 0, unsigned int imgDownSize = 0); + private: enum Constants { TitleHeight = 20, @@ -55,10 +65,9 @@ void* _fb; Clickable* _buttons[NumberOfButtons]; int _usedButtons; + App*(*_callback)(uint32_t buttonID); void draw(); - void addButton(uint32_t buttonID, const char* caption); - void addImageButton(uint32_t buttonID, const char* imgUp, const char* imgDown = 0); }; #endif