From f59d2329c904e8cb5f6509050444bf2aee4b8f65 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 29 Nov 2015 09:32:52 +0100 Subject: Move event skip optimization fromNativeWindowXYZ to EventHandler --- plugingui/eventhandler.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'plugingui/eventhandler.h') 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: -- cgit v1.2.3