summaryrefslogtreecommitdiff
path: root/plugingui/guievent.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-12-02 19:24:57 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2017-01-21 14:51:32 +0100
commitea6883e9ba851db5e6557b1d71d1268f6ab25c64 (patch)
tree7bc0778d2b42a4040552fb44b4b7c011b5f09989 /plugingui/guievent.h
parentb2f7b6be4c6695fa741f2eafaef3af5bce5c30c2 (diff)
Make resize events fdo the right thing. Add move event.
Diffstat (limited to 'plugingui/guievent.h')
-rw-r--r--plugingui/guievent.h11
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::