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:
14:647b1896ed84
--- a/Application/AppColorPicker.h	Mon Mar 09 14:24:54 2015 +0000
+++ b/Application/AppColorPicker.h	Fri Mar 20 14:25:46 2015 +0100
@@ -21,6 +21,7 @@
 #include "DMBoard.h"
 #include "lpc_swim.h"
 #include "ImageButton.h"
+#include "Resource.h"
 
 /**
  * An App example letting the user pick a color from a colored area.
@@ -40,6 +41,21 @@
     virtual void runToCompletion();
     virtual bool teardown();
 
+    enum Resources {
+        Resource_Ok_button,
+    };
+
+    /** 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.
+     *
+     *  @param id  the identifier
+     *  @param res the resource
+     */
+    void addResource(Resources id, Resource* res);
+
 private:
     Display* _disp;
     SWIM_WINDOW_T* _win;
@@ -47,6 +63,11 @@
     COLOR_T* _fb;
     COLOR_T* _fb2;
     ImageButton* _btn;
+    Resource* _resOk;
+    int _resultX;
+    int _resultY;
+    int _resultW;
+    int _resultH;
 
     void draw();
 };