summaryrefslogtreecommitdiff
path: root/plugingui/eventhandler.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-02-10 19:52:34 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2017-02-10 20:11:31 +0100
commitdc33f15a6b968139779c2b7d2003d3ef6e7d5748 (patch)
tree949172db6cdb9ed2b03bfe9f5051f51a683ecd19 /plugingui/eventhandler.h
parentf9d2d48214038689dc42085373b28b934f7fe002 (diff)
Clean up guievent.h and use EventQueue type instead if std::queue.
Diffstat (limited to 'plugingui/eventhandler.h')
-rw-r--r--plugingui/eventhandler.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugingui/eventhandler.h b/plugingui/eventhandler.h
index 31ab3e2..2a1b657 100644
--- a/plugingui/eventhandler.h
+++ b/plugingui/eventhandler.h
@@ -33,11 +33,13 @@
#include "guievent.h"
#include "nativewindow.h"
-namespace GUI {
+namespace GUI
+{
class Window;
-class EventHandler {
+class EventHandler
+{
public:
EventHandler(NativeWindow& nativeWindow, Window& window);
@@ -64,7 +66,7 @@ private:
// Used to ignore mouse button release after a double click.
bool lastWasDoubleClick;
- std::queue<std::shared_ptr<Event>> events;
+ EventQueue events;
};
} // GUI::