Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/DOMWheelEvent.d @ 0:380af2bdd8e5
Upload of whole dwt tree
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Sat, 09 Aug 2008 17:00:02 +0200 |
parents | |
children | f565d3a95c0a |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:380af2bdd8e5 |
---|---|
1 /******************************************************************************* | |
2 * Port to the D Programming language: | |
3 * Jacob Carlborg <jacob.carlborg@gmail.com> | |
4 *******************************************************************************/ | |
5 module dwt.internal.cocoa.DOMWheelEvent; | |
6 | |
7 import dwt.dwthelper.utils; | |
8 import dwt.internal.cocoa.NSObject; | |
9 | |
10 public class DOMWheelEvent : NSObject { | |
11 | |
12 public this () { | |
13 super(); | |
14 } | |
15 | |
16 public this (int id) { | |
17 super(id); | |
18 } | |
19 | |
20 public bool altKey () { | |
21 return OS.objc_msgSend(this.id, OS.sel_altKey) !is 0; | |
22 } | |
23 | |
24 public int clientX () { | |
25 return OS.objc_msgSend(this.id, OS.sel_clientX); | |
26 } | |
27 | |
28 public int clientY () { | |
29 return OS.objc_msgSend(this.id, OS.sel_clientY); | |
30 } | |
31 | |
32 public bool ctrlKey () { | |
33 return OS.objc_msgSend(this.id, OS.sel_ctrlKey) !is 0; | |
34 } | |
35 | |
36 public bool isHorizontal () { | |
37 return OS.objc_msgSend(this.id, OS.sel_isHorizontal) !is 0; | |
38 } | |
39 | |
40 public bool metaKey () { | |
41 return OS.objc_msgSend(this.id, OS.sel_metaKey) !is 0; | |
42 } | |
43 | |
44 public int screenX () { | |
45 return OS.objc_msgSend(this.id, OS.sel_screenX); | |
46 } | |
47 | |
48 public int screenY () { | |
49 return OS.objc_msgSend(this.id, OS.sel_screenY); | |
50 } | |
51 | |
52 public bool shiftKey () { | |
53 return OS.objc_msgSend(this.id, OS.sel_shiftKey) !is 0; | |
54 } | |
55 | |
56 public int wheelDelta () { | |
57 return OS.objc_msgSend(this.id, OS.sel_wheelDelta); | |
58 } | |
59 | |
60 } |