From ea6883e9ba851db5e6557b1d71d1268f6ab25c64 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Fri, 2 Dec 2016 19:24:57 +0100 Subject: Make resize events fdo the right thing. Add move event. --- plugingui/guievent.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'plugingui/guievent.h') diff --git a/plugingui/guievent.h b/plugingui/guievent.h index 133b630..78fe0f8 100644 --- a/plugingui/guievent.h +++ b/plugingui/guievent.h @@ -44,7 +44,8 @@ enum class EventType { scroll, key, close, - resize + resize, + move }; class Event { @@ -150,4 +151,12 @@ public: size_t height; }; +class MoveEvent : public Event { +public: + EventType type() { return EventType::move; } + + int x; + int y; +}; + } // GUI:: -- cgit v1.2.3