Foundation classes for a basic GUI implementing simple widgets and events

Dependents:   TouchScreenGUIDemo

Revision:
8:a460cabc85ac
Parent:
1:48796b602c86
Child:
12:63db16fea709
--- a/Events/EventListener.h	Sun Apr 10 16:48:44 2016 +0000
+++ b/Events/EventListener.h	Mon Apr 11 16:54:02 2016 +0000
@@ -15,11 +15,15 @@
     virtual bool isEventTarget(Event e);
     void handleEvent(Event e);
     void setEventHandler(uint8_t type, EventHandler handler);
-    void unsetEventHandler(uint8_t type);
+    /**
+    * Returns the number of remaining handlers
+    **/
+    int unsetEventHandler(uint8_t type);
    
     private:
     
-    EventHandlerWrapper* _handlers;    
+    EventHandlerWrapper* _handlers;
+    int _numHandlers;  
       
 };