el h / SimpleGUI

Fork of SimpleGUI by Duncan McIntyre

Events/EventListener.h

Committer:
elh
Date:
2016-10-18
Revision:
20:ef07d42ea062
Parent:
18:d849f3ada858

File content as of revision 20:ef07d42ea062:

#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:

    virtual void handleEvent(Event e) =0;
    virtual void setEventHandler(EventHandler *handler) =0;
    virtual void unsetEventHandler(EventHandler* handler) =0;

};

#endif