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/ImageButton.h
- Revision:
- 4:a73760d09423
- Parent:
- 3:3fabfe3339b8
- Child:
- 6:7917b0894655
diff -r 3fabfe3339b8 -r a73760d09423 Application/ImageButton.h --- a/Application/ImageButton.h Fri Dec 19 09:12:51 2014 +0100 +++ b/Application/ImageButton.h Fri Dec 19 16:40:30 2014 +0100 @@ -42,6 +42,17 @@ /** Loads the mandatory "normal" state image and the optional "pressed" state image * + * @param imgUp the file with the image for the normal state + * @param imgDown the file with the image for the pressed state (or NULL to use the same) + * + * @returns + * true on success + * false on failure + */ + bool loadImages(const char* imgUp, const char* imgDown = 0); + + /** Loads the mandatory "normal" state image and the optional "pressed" state image + * * @param imgUp the image for the normal state * @param imgDown the image for the pressed state (or NULL to use the same) * @@ -49,7 +60,8 @@ * true on success * false on failure */ - bool loadImages(const char* imgUp, const char* imgDown = 0); + bool loadImages(const unsigned char* imgUp, unsigned int imgUpSize, + const unsigned char* imgDown = 0, unsigned int imgDownSize = 0); /** Draws the button */