Foundation classes for a basic GUI implementing simple widgets and events
Dependents: TouchScreenGUIDemo
Events/EventListener.h
- Committer:
- duncanFrance
- Date:
- 2016-04-11
- Revision:
- 8:a460cabc85ac
- Parent:
- 1:48796b602c86
- Child:
- 12:63db16fea709
File content as of revision 8:a460cabc85ac:
#ifndef SIMPLEGUI_EVENT_TARGET_H #define SIMPLEGUI_EVENT_TARGET_H // Need a forward declaration of EventListener here class EventListener; #include "EventHandler.h" class EventListener { public: EventListener(); virtual bool isEventTarget(Event e); void handleEvent(Event e); void setEventHandler(uint8_t type, EventHandler handler); /** * Returns the number of remaining handlers **/ int unsetEventHandler(uint8_t type); private: EventHandlerWrapper* _handlers; int _numHandlers; }; #endif