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/nativewindow.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugingui/nativewindow.h') diff --git a/plugingui/nativewindow.h b/plugingui/nativewindow.h index 46891f2..a44693c 100644 --- a/plugingui/nativewindow.h +++ b/plugingui/nativewindow.h @@ -75,6 +75,10 @@ public: //! \brief Read a single event from the event queue. //! \return A pointer to the event or nullptr is none exists. virtual Event *getNextEvent() = 0; + + //! \brief Read next event without popping it from the event queue. + //! \return A pointer to the event or nullptr is none exists. + virtual Event* peekNextEvent() = 0; }; } // GUI:: -- cgit v1.2.3