diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-12-02 19:24:57 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-01-21 14:51:32 +0100 |
commit | ea6883e9ba851db5e6557b1d71d1268f6ab25c64 (patch) | |
tree | 7bc0778d2b42a4040552fb44b4b7c011b5f09989 /plugingui/guievent.h | |
parent | b2f7b6be4c6695fa741f2eafaef3af5bce5c30c2 (diff) |
Make resize events fdo the right thing. Add move event.
Diffstat (limited to 'plugingui/guievent.h')
-rw-r--r-- | plugingui/guievent.h | 11 |
1 files changed, 10 insertions, 1 deletions
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:: |