summaryrefslogtreecommitdiff
path: root/plugingui/eventhandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/eventhandler.h')
-rw-r--r--plugingui/eventhandler.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugingui/eventhandler.h b/plugingui/eventhandler.h
index 8fa42e4..b011f87 100644
--- a/plugingui/eventhandler.h
+++ b/plugingui/eventhandler.h
@@ -38,7 +38,7 @@ class EventHandler {
public:
EventHandler(NativeWindow& nativeWindow, Window& window);
- //! \brief Process all evebts currently in the event queue.
+ //! \brief Process all events currently in the event queue.
void processEvents();
//! \brief Query if any events are currently in the event queue.
@@ -48,6 +48,10 @@ public:
//! \return A pointer to the event or nullptr if there are none.
Event *getNextEvent();
+ //! \brief Get a single event from the event queue without popping it.
+ //! \return A pointer to the event or nullptr if there are none.
+ Event *peekNextEvent();
+
Notifier<> closeNotifier;
private: