el h / SimpleGUI

Fork of SimpleGUI by Duncan McIntyre

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers EventSource.h Source File

EventSource.h

00001 #ifndef SIMPLEGUI_EVENT_SOURCE_H
00002 #define SIMPLEGUI_EVENT_SOURCE_H
00003 
00004 #include "EventDispatcher.h"
00005 
00006 /**
00007 * Interface defining a class which sources events
00008 **/
00009 class EventSource {
00010     
00011     public:
00012     
00013     EventSource(EventDispatcher* dispatcher) : _eventDispatcher(dispatcher) {}
00014 
00015     protected:
00016     
00017     EventDispatcher* _eventDispatcher; 
00018 };
00019 
00020 
00021 #endif