diff options
Diffstat (limited to 'plugingui/eventhandler.h')
-rw-r--r-- | plugingui/eventhandler.h | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/plugingui/eventhandler.h b/plugingui/eventhandler.h index a0ccd63..c63c003 100644 --- a/plugingui/eventhandler.h +++ b/plugingui/eventhandler.h @@ -27,19 +27,36 @@ #ifndef __DRUMGIZMO_EVENTHANDLER_H__ #define __DRUMGIZMO_EVENTHANDLER_H__ -#include "event.h" +#include "guievent.h" +#include "globalcontext.h" -class GlobalContext; +#include "window.h" + +namespace GUI { class EventHandler { public: EventHandler(GlobalContext *gctx); + void processEvents(Window *window); + bool hasEvent(); Event *getNextEvent(); -private: + void registerCloseHandler(void (*handler)(void *), void *ptr); + +#ifdef WIN32 + Event *event; +#endif/*WIN32*/ + GlobalContext *gctx; + +private: + + void (*closeHandler)(void *); + void *closeHandlerPtr; +}; + }; #endif/*__DRUMGIZMO_EVENTHANDLER_H__*/ |