summaryrefslogtreecommitdiff
path: root/plugingui/guievent.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-03-07 21:10:47 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-03-07 21:10:47 +0100
commitd556005df149558e2614b7019ca4b180f9c44fb8 (patch)
treeaa72fe8fd186480c6c0992cc650ccc130979bf81 /plugingui/guievent.h
parentd611ee9834561622faeeddb604062d92b30a4512 (diff)
Add scrollEvent and use it for scrolling on listbox.
Diffstat (limited to 'plugingui/guievent.h')
-rw-r--r--plugingui/guievent.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/plugingui/guievent.h b/plugingui/guievent.h
index d8d6955..db0328c 100644
--- a/plugingui/guievent.h
+++ b/plugingui/guievent.h
@@ -44,6 +44,7 @@ public:
MouseMove,
Repaint,
Button,
+ Scroll,
Key,
Close,
Resize
@@ -77,6 +78,16 @@ public:
int doubleclick;
};
+class ScrollEvent : public Event {
+public:
+ Type type() { return Scroll; }
+
+ int x;
+ int y;
+
+ int delta;
+};
+
class RepaintEvent : public Event {
public:
Type type() { return Repaint; }