Foundation classes for a basic GUI implementing simple widgets and events
Dependents: TouchScreenGUIDemo
Events/EventListener.h
- Committer:
- duncanFrance
- Date:
- 2016-05-21
- Revision:
- 15:e69fd74d42e4
- Parent:
- 12:63db16fea709
- Child:
- 18:d849f3ada858
File content as of revision 15:e69fd74d42e4:
#ifndef SIMPLEGUI_EVENT_TARGET_H #define SIMPLEGUI_EVENT_TARGET_H // Need a forward declaration of EventListener here class EventListener; #include "EventHandler.h" #include "LinkedList.h" class EventListener { public: EventListener(); virtual bool isEventTarget(Event e); void handleEvent(Event e); void setEventHandler(EventHandler *handler); void unsetEventHandler(EventHandler* handler); protected: LinkedList<EventHandler> _handlers; }; #endif