Foundation classes for a basic GUI implementing simple widgets and events
Dependents: TouchScreenGUIDemo
Events/EventListener.h
- Committer:
- duncanFrance
- Date:
- 2016-05-08
- Revision:
- 12:63db16fea709
- Parent:
- 8:a460cabc85ac
- Child:
- 15:e69fd74d42e4
File content as of revision 12:63db16fea709:
#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); private: LinkedList<EventHandler> _handlers; }; #endif