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

Revision:
17:6e2abf107800
Parent:
11:265884fa7fdd
--- a/Application/ImageButton.h	Mon Mar 09 14:24:54 2015 +0000
+++ b/Application/ImageButton.h	Fri Mar 20 14:25:46 2015 +0100
@@ -19,6 +19,7 @@
 
 #include "Clickable.h"
 #include "Image.h"
+#include "Resource.h"
 
 /**
  * The ImageButton is used in the same way as the Button so see it for an example
@@ -56,8 +57,10 @@
 
     /** 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)
+     *  @param imgUp      the image for the normal state
+     *  @param imgUpSize  the size of the imgUp data
+     *  @param imgDown    the image for the pressed state (or NULL to use the same)
+     *  @param imgUpSize  the size of the imgDown data
      *
      *  @returns
      *       true on success
@@ -66,6 +69,17 @@
   bool loadImages(const unsigned char* imgUp, unsigned int imgUpSize, 
                   const unsigned char* imgDown = 0, unsigned int imgDownSize = 0);
 
+    /** Loads the mandatory "normal" state image and the optional "pressed" state image
+     *
+     *  @param resImgUp   the resource for the normal state image
+     *  @param resImgDown the resource for the pressed state image (or NULL to use the same)
+     *
+     *  @returns
+     *       true on success
+     *       false on failure
+     */
+  bool loadImages(Resource* resImgUp, Resource* resImgDown = 0);
+
     /** Specifys a color that will be considered transparent (i.e. will not be drawn)
      *  @param tColor  the transparent color
      */