summaryrefslogtreecommitdiff
path: root/plugingui/nativewindow.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-02-10 19:52:34 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2017-02-10 20:11:31 +0100
commitdc33f15a6b968139779c2b7d2003d3ef6e7d5748 (patch)
tree949172db6cdb9ed2b03bfe9f5051f51a683ecd19 /plugingui/nativewindow.h
parentf9d2d48214038689dc42085373b28b934f7fe002 (diff)
Clean up guievent.h and use EventQueue type instead if std::queue.
Diffstat (limited to 'plugingui/nativewindow.h')
-rw-r--r--plugingui/nativewindow.h18
1 files changed, 3 insertions, 15 deletions
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<std::shared_ptr<Event>> 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<Event> 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<Event> peekNextEvent() = 0;
-*/
+ virtual EventQueue getEvents() = 0;
};
} // GUI::