Foundation classes for a basic GUI implementing simple widgets and events
Dependents: TouchScreenGUIDemo
Events/EventDispatcher.h
- Committer:
- duncanFrance
- Date:
- 2016-05-08
- Revision:
- 12:63db16fea709
- Parent:
- 0:0a590815d51c
- Child:
- 18:d849f3ada858
File content as of revision 12:63db16fea709:
#ifndef SIMPLEGUI_EVENT_DISPATCHER_H #define SIMPLEGUI_EVENT_DISPATCHER_H #include "EventListener.h" #include "LinkedList.h" class EventDispatcher { public: EventDispatcher(); void attachListener(EventListener* l); void detachListener(EventListener* l); void dispatchEvent(Event e); private: LinkedList<EventListener> _listeners; }; #endif