Basic swim GUI for LPC4088

Fork of DMBasicGUI by Embedded Artists

Revision:
17:6e2abf107800
Parent:
14:647b1896ed84
--- a/SlideShow/AppSlideShow.h	Mon Mar 09 14:24:54 2015 +0000
+++ b/SlideShow/AppSlideShow.h	Fri Mar 20 14:25:46 2015 +0100
@@ -22,6 +22,7 @@
 #include "SlideShow.h"
 #include "rtos.h"
 #include "ImageButton.h"
+#include "Resource.h"
 
 /**
  * An App example showing how to use the SlideShow engine.
@@ -45,6 +46,22 @@
     virtual void runToCompletion();
     virtual bool teardown();
 
+    enum Resources {
+        Resource_Ok_button,
+        Resource_Repeat_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:
     void* _fb;
     Display* _disp;
@@ -57,6 +74,8 @@
     char* _path;
     int _xoff;
     int _yoff;
+    Resource* _resOk;
+    Resource* _resRepeat;
 };
 
 #endif