Foundation classes for a basic GUI implementing simple widgets and events
Dependents: TouchScreenGUIDemo
Diff: Events/EventListener.h
- Revision:
- 18:d849f3ada858
- Parent:
- 15:e69fd74d42e4
--- a/Events/EventListener.h Sun May 22 16:35:23 2016 +0000 +++ b/Events/EventListener.h Sat May 28 14:50:14 2016 +0000 @@ -5,23 +5,16 @@ class EventListener; #include "EventHandler.h" -#include "LinkedList.h" class EventListener { public: - EventListener(); + virtual void handleEvent(Event e) =0; + virtual void setEventHandler(EventHandler *handler) =0; + virtual void unsetEventHandler(EventHandler* handler) =0; - virtual bool isEventTarget(Event e); - void handleEvent(Event e); - void setEventHandler(EventHandler *handler); - void unsetEventHandler(EventHandler* handler); - -protected: - - LinkedList<EventHandler> _handlers; }; #endif \ No newline at end of file