From 736a8f29c9bcf2cbd2d36c4fd229520974750cd8 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 10 Feb 2017 18:45:24 +0100 Subject: Return a list of events form native window instead of one event at a time. --- plugingui/nativewindow.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugingui') diff --git a/plugingui/nativewindow.h b/plugingui/nativewindow.h index ffa5c15..f5184eb 100644 --- a/plugingui/nativewindow.h +++ b/plugingui/nativewindow.h @@ -28,6 +28,7 @@ #include #include +#include #include "guievent.h" @@ -77,6 +78,11 @@ public: //! Toggle capture mouse mode. virtual void grabMouse(bool grab) = 0; + //! Reads all currently enqueued events from the native window system. + //! \return A queue of shared pointers to events. + virtual std::queue> getEvents() = 0; + +/* //! Query if the event queue contains any events. virtual bool hasEvent() = 0; @@ -87,6 +93,7 @@ public: //! Read next event without popping it from the event queue. //! \return A pointer to the event or nullptr is none exists. virtual std::shared_ptr peekNextEvent() = 0; +*/ }; } // GUI:: -- cgit v1.2.3