From af9c9091ed69394171485aa4c4814504f86f2004 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 23 Jan 2012 20:08:12 +0100 Subject: Simple image blit. New slider class. New filenamelineedit. New pixelbuffer used for drawing everything but the root window - with alpha blending... --- plugingui/eventhandler.h | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'plugingui/eventhandler.h') 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__*/ -- cgit v1.2.3