1 /** DGui project file.
2 
3 Copyright: Trogu Antonio Davide 2011-2013
4 
5 License: $(HTTP boost.org/LICENSE_1_0.txt, Boost License 1.0).
6 
7 Authors: Trogu Antonio Davide
8 */
9 module dguihub.core.events.scrolleventargs;
10 
11 public import dguihub.core.events.eventargs;
12 import dguihub.core.winapi;
13 
14 enum ScrollMode : uint {
15    bottom = SB_BOTTOM,
16    endScroll = SB_ENDSCROLL,
17    lineDown = SB_LINEDOWN,
18    lineUp = SB_LINEUP,
19    pageDown = SB_PAGEDOWN,
20    pageUp = SB_PAGEUP,
21    thumbPosition = SB_THUMBPOSITION,
22    thumbTrack = SB_THUMBTRACK,
23    top = SB_TOP,
24    left = SB_LEFT,
25    right = SB_RIGHT,
26    lineLeft = SB_LINELEFT,
27    lineRight = SB_LINERIGHT,
28    pageLeft = SB_PAGELEFT,
29    pageRight = SB_PAGERIGHT,
30 }
31 
32 enum ScrollWindowDirection : ubyte {
33    left = 0,
34    up = 1,
35    right = 2,
36    down = 4,
37 }
38 
39 enum ScrollDirection : ubyte {
40    vertical,
41    horizontal,
42 }
43 
44 class ScrollEventArgs : EventArgs {
45    private ScrollDirection _dir;
46    private ScrollMode _mode;
47 
48    public this(ScrollDirection sd, ScrollMode sm) {
49       this._dir = sd;
50       this._mode = sm;
51    }
52 
53    @property public ScrollDirection direction() {
54       return this._dir;
55    }
56 
57    @property public ScrollMode mode() {
58       return this._mode;
59    }
60 }