Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SimpleGUI by
Events/EventListener.h
- Committer:
- duncanFrance
- Date:
- 2016-03-25
- Revision:
- 0:0a590815d51c
- Child:
- 1:48796b602c86
File content as of revision 0:0a590815d51c:
#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) = 0; void handleEvent(Event e); void setEventHandler(uint8_t type, EventHandler handler); void unsetEventHandler(uint8_t type); private: EventHandlerWrapper* _handlers; }; #endif