OLD | NEW |
| (Empty) |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
2 // for details. All rights reserved. Use of this source code is governed by a | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 // WARNING: | |
6 // This file contains documentation that is merged into the real source. | |
7 // Do not make code changes here. | |
8 | |
9 /// @domName MouseEvent | |
10 abstract class MouseEvent implements UIEvent { | |
11 | |
12 factory MouseEvent(String type, Window view, int detail, int screenX, int scre
enY, | |
13 int clientX, int clientY, int button, [bool canBubble = true, | |
14 bool cancelable = true, bool ctrlKey = false, bool altKey = false, | |
15 bool shiftKey = false, bool metaKey = false, | |
16 EventTarget relatedTarget = null]) => | |
17 _MouseEventFactoryProvider.createMouseEvent( | |
18 type, view, detail, screenX, screenY, | |
19 clientX, clientY, button, canBubble, cancelable, | |
20 ctrlKey, altKey, shiftKey, metaKey, | |
21 relatedTarget); | |
22 | |
23 | |
24 /** @domName MouseEvent.altKey */ | |
25 abstract bool get altKey; | |
26 | |
27 /** @domName MouseEvent.button */ | |
28 abstract int get button; | |
29 | |
30 /** @domName MouseEvent.clientX */ | |
31 abstract int get clientX; | |
32 | |
33 /** @domName MouseEvent.clientY */ | |
34 abstract int get clientY; | |
35 | |
36 /** @domName MouseEvent.ctrlKey */ | |
37 abstract bool get ctrlKey; | |
38 | |
39 /** @domName MouseEvent.dataTransfer */ | |
40 abstract Clipboard get dataTransfer; | |
41 | |
42 /** @domName MouseEvent.fromElement */ | |
43 abstract Node get fromElement; | |
44 | |
45 /** @domName MouseEvent.metaKey */ | |
46 abstract bool get metaKey; | |
47 | |
48 /** | |
49 * The X coordinate of the mouse pointer in target node coordinates. | |
50 * This value may vary between platforms if the target node moves | |
51 * after the event has fired or if the element has CSS transforms affecting | |
52 * it. | |
53 */ | |
54 abstract int get offsetX; | |
55 | |
56 /** | |
57 * The Y coordinate of the mouse pointer in target node coordinates. | |
58 * This value may vary between platforms if the target node moves | |
59 * after the event has fired or if the element has CSS transforms affecting | |
60 * it. | |
61 */ | |
62 abstract int get offsetY; | |
63 | |
64 /** @domName MouseEvent.relatedTarget */ | |
65 abstract EventTarget get relatedTarget; | |
66 | |
67 /** @domName MouseEvent.screenX */ | |
68 abstract int get screenX; | |
69 | |
70 /** @domName MouseEvent.screenY */ | |
71 abstract int get screenY; | |
72 | |
73 /** @domName MouseEvent.shiftKey */ | |
74 abstract bool get shiftKey; | |
75 | |
76 /** @domName MouseEvent.toElement */ | |
77 abstract Node get toElement; | |
78 | |
79 /** @domName MouseEvent.webkitMovementX */ | |
80 abstract int get webkitMovementX; | |
81 | |
82 /** @domName MouseEvent.webkitMovementY */ | |
83 abstract int get webkitMovementY; | |
84 | |
85 /** @domName MouseEvent.x */ | |
86 abstract int get x; | |
87 | |
88 /** @domName MouseEvent.y */ | |
89 abstract int get y; | |
90 | |
91 /** @domName MouseEvent.initMouseEvent */ | |
92 void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, LocalWi
ndow view, int detail, int screenX, int screenY, int clientX, int clientY, bool
ctrlKey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relat
edTarget); | |
93 } | |
OLD | NEW |