From d556005df149558e2614b7019ca4b180f9c44fb8 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 7 Mar 2013 21:10:47 +0100 Subject: Add scrollEvent and use it for scrolling on listbox. --- plugingui/guievent.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'plugingui/guievent.h') 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; } -- cgit v1.2.3