Foundation classes for a basic GUI implementing simple widgets and events. (Fork for custom changes.)

Fork of SimpleGUI by Duncan McIntyre

Revision:
0:0a590815d51c
Child:
12:63db16fea709
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Events/EventHandler.h	Fri Mar 25 13:47:04 2016 +0000
@@ -0,0 +1,21 @@
+#ifndef SIMPLEGUI_EVENT_HANDLER_H
+#define SIMPLEGUI_EVENT_HANDLER_H
+
+#include "Event.h"
+
+typedef void (* EventHandler)(Event e, EventListener* target);
+
+class EventHandlerWrapper {
+    
+    public:
+
+    EventHandlerWrapper(uint8_t eventType, EventHandler h) : type(eventType), handler(h), prev(NULL), next(NULL) {}
+    
+    uint8_t type;
+    EventHandler handler;
+    EventHandlerWrapper* prev;
+    EventHandlerWrapper* next;
+};
+
+
+#endif
\ No newline at end of file