Foundation classes for a basic GUI implementing simple widgets and events
Dependents: TouchScreenGUIDemo
Events/EventListener.h
- Committer:
- duncanFrance
- Date:
- 2016-03-25
- Revision:
- 1:48796b602c86
- Parent:
- 0:0a590815d51c
- Child:
- 8:a460cabc85ac
File content as of revision 1:48796b602c86:
#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); void unsetEventHandler(uint8_t type); private: EventHandlerWrapper* _handlers; }; #endif