From dc33f15a6b968139779c2b7d2003d3ef6e7d5748 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 10 Feb 2017 19:52:34 +0100 Subject: Clean up guievent.h and use EventQueue type instead if std::queue. --- plugingui/nativewindow.h | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'plugingui/nativewindow.h') diff --git a/plugingui/nativewindow.h b/plugingui/nativewindow.h index f5184eb..e041994 100644 --- a/plugingui/nativewindow.h +++ b/plugingui/nativewindow.h @@ -36,7 +36,8 @@ namespace GUI { //! Interface class for native window implementations. -class NativeWindow { +class NativeWindow +{ public: NativeWindow() {} virtual ~NativeWindow() {} @@ -80,20 +81,7 @@ public: //! 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; - - //! Read a single event from the event queue. - //! \return A pointer to the event or nullptr is none exists. - virtual std::shared_ptr getNextEvent() = 0; - - //! 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; -*/ + virtual EventQueue getEvents() = 0; }; } // GUI:: -- cgit v1.2.3