diff options
-rw-r--r-- | plugingui/nativewindow.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 <string> #include <memory> +#include <queue> #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<std::shared_ptr<Event>> 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<Event> peekNextEvent() = 0; +*/ }; } // GUI:: |