summaryrefslogtreecommitdiff
path: root/plugingui/eventhandler.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-11-29 09:32:52 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-11-29 09:32:52 +0100
commitf59d2329c904e8cb5f6509050444bf2aee4b8f65 (patch)
treec1e2ed264664c030d96399016221072e9dabfc8e /plugingui/eventhandler.h
parent77cd0b84e1cef83a4fa9b77663cea65b42355f7a (diff)
Move event skip optimization fromNativeWindowXYZ to EventHandler
Diffstat (limited to 'plugingui/eventhandler.h')
-rw-r--r--plugingui/eventhandler.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugingui/eventhandler.h b/plugingui/eventhandler.h
index 8fa42e4..b011f87 100644
--- a/plugingui/eventhandler.h
+++ b/plugingui/eventhandler.h
@@ -38,7 +38,7 @@ class EventHandler {
public:
EventHandler(NativeWindow& nativeWindow, Window& window);
- //! \brief Process all evebts currently in the event queue.
+ //! \brief Process all events currently in the event queue.
void processEvents();
//! \brief Query if any events are currently in the event queue.
@@ -48,6 +48,10 @@ public:
//! \return A pointer to the event or nullptr if there are none.
Event *getNextEvent();
+ //! \brief Get a single event from the event queue without popping it.
+ //! \return A pointer to the event or nullptr if there are none.
+ Event *peekNextEvent();
+
Notifier<> closeNotifier;
private: