diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-01-23 20:08:12 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-01-23 20:08:12 +0100 |
commit | af9c9091ed69394171485aa4c4814504f86f2004 (patch) | |
tree | 070b911dc8faed486c8e8829f0f41aec7d5b4350 /plugingui/eventhandler.h | |
parent | 5e4cb10f72ef69d73fbd2c1bc42465c9111a4c41 (diff) |
Simple image blit. New slider class. New filenamelineedit. New pixelbuffer used for drawing everything but the root window - with alpha blending...
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__*/ |