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 dgui.core.events.scrolleventargs;
10 
11 public import dgui.core.events.eventargs;
12 import dgui.core.winapi;
13 
14 enum ScrollMode: uint
15 {
16 	bottom 		  = SB_BOTTOM,
17 	endScroll 	  = SB_ENDSCROLL,
18 	lineDown  	  = SB_LINEDOWN,
19 	lineUp 		  = SB_LINEUP,
20 	pageDown	  = SB_PAGEDOWN,
21 	pageUp 		  = SB_PAGEUP,
22 	thumbPosition = SB_THUMBPOSITION,
23 	thumbTrack 	  = SB_THUMBTRACK,
24 	top 		  = SB_TOP,
25 	left  		  = SB_LEFT,
26 	right 		  = SB_RIGHT,
27 	lineLeft      = SB_LINELEFT,
28 	lineRight 	  = SB_LINERIGHT,
29 	pageLeft 	  = SB_PAGELEFT,
30 	pageRight 	  = SB_PAGERIGHT,
31 }
32 
33 enum ScrollWindowDirection: ubyte
34 {
35 	left  = 0,
36 	up    = 1,
37 	right = 2,
38 	down  = 4,
39 }
40 
41 enum ScrollDirection: ubyte
42 {
43 	vertical,
44 	horizontal,
45 }
46 
47 class ScrollEventArgs: EventArgs
48 {
49 	private ScrollDirection _dir;
50 	private ScrollMode _mode;
51 
52 	public this(ScrollDirection sd, ScrollMode sm)
53 	{
54 		this._dir = sd;
55 		this._mode = sm;
56 	}
57 
58 	@property public ScrollDirection direction()
59 	{
60 		return this._dir;
61 	}
62 
63 	@property public ScrollMode mode()
64 	{
65 		return this._mode;
66 	}
67 }