1 |
wakaba |
1.1 |
Namespace: |
2 |
|
|
@DOMCore: |
3 |
|
|
http://suika.fam.cx/~wakaba/archive/2004/8/18/dom-core# |
4 |
|
|
@DOMEvents: |
5 |
|
|
http://suika.fam.cx/~wakaba/archive/2004/dom/events# |
6 |
|
|
@DOMViews: |
7 |
|
|
http://suika.fam.cx/~wakaba/archive/2004/dom/views# |
8 |
|
|
@ev: |
9 |
|
|
http://www.w3.org/2001/xml-events |
10 |
|
|
@lang: |
11 |
|
|
http://suika.fam.cx/~wakaba/archive/2004/8/18/lang# |
12 |
|
|
@license: |
13 |
|
|
http://suika.fam.cx/~wakaba/archive/2004/8/18/license# |
14 |
|
|
@ManakaiDOMEvents: |
15 |
|
|
http://suika.fam.cx/~wakaba/archive/2004/mdom-ev# |
16 |
|
|
@TreeCore:\ |
17 |
|
|
Module: |
18 |
|
|
@Name: DOMMouseEvents |
19 |
|
|
@Namespace: |
20 |
|
|
http://suika.fam.cx/~wakaba/archive/2004/dom/events# |
21 |
|
|
@BindingName: |
22 |
|
|
@@@: events |
23 |
|
|
@@Type: |
24 |
|
|
lang:IDL-DOM |
25 |
|
|
@@prefix: dom.w3c.org |
26 |
|
|
@FullName: |
27 |
|
|
@@lang:en |
28 |
|
|
@@@: DOM Mouse Events Module |
29 |
|
|
@Description: |
30 |
|
|
@@lang:en |
31 |
|
|
@@@: |
32 |
|
|
This event module is specifically designed for use with |
33 |
|
|
pointing input devices, such as a mouse or a track ball. |
34 |
|
|
|
35 |
|
|
@Author: |
36 |
|
|
@@FullName: Wakaba |
37 |
|
|
@@Mail: w@suika.fam.cx |
38 |
|
|
@License: |
39 |
|
|
license:Perl+MPL |
40 |
|
|
@Date.RCS: |
41 |
|
|
$Date: 2004/10/11 12:02:00 $ |
42 |
|
|
|
43 |
|
|
@ConditionDef: |
44 |
|
|
@@Name:DOM2 |
45 |
|
|
@ConditionDef: |
46 |
|
|
@@Name:DOM3 |
47 |
|
|
@@ISA:DOM2 |
48 |
|
|
@NormalCondition:DOM3 |
49 |
|
|
|
50 |
|
|
@Feature: |
51 |
|
|
@@Name:MouseEvents |
52 |
|
|
@@Version:2.0 |
53 |
|
|
@@FullName: DOM Level 2 Mouse Events |
54 |
|
|
@@ImplNote: |
55 |
|
|
@@@lang:en |
56 |
|
|
@@@@: |
57 |
|
|
The support for <Feature:UIEvents>/<FeatureVer:2.0> is required. |
58 |
|
|
@@Condition[list]: |
59 |
|
|
DOM2 |
60 |
|
|
DOM3 |
61 |
|
|
@@Contrib: |
62 |
|
|
DOMCore:DOMImplementation:: |
63 |
|
|
@Feature: |
64 |
|
|
@@Name:MouseEvents |
65 |
|
|
@@Version:3.0 |
66 |
|
|
@@FullName: DOM Level 3 Mouse Events |
67 |
|
|
@@ImplNote: |
68 |
|
|
@@@lang:en |
69 |
|
|
@@@@: |
70 |
|
|
The support for <Feature:UIEvents>/<FeatureVer:3.0> is required. |
71 |
|
|
@@Condition[list]: |
72 |
|
|
DOM3 |
73 |
|
|
@@Contrib: |
74 |
|
|
DOMCore:DOMImplementation:: |
75 |
|
|
|
76 |
|
|
@Require: |
77 |
|
|
@@Module: |
78 |
|
|
@@@Name: DOMUIEvents |
79 |
|
|
@@@FileName: |
80 |
|
|
@@@@@: events.idl |
81 |
|
|
@@@@For: |
82 |
|
|
lang:IDL-DOM |
83 |
|
|
@@@Namespace: |
84 |
|
|
http://suika.fam.cx/~wakaba/archive/2004/dom/events# |
85 |
|
|
|
86 |
|
|
EventSet: |
87 |
|
|
@Event: |
88 |
|
|
@@Name:click |
89 |
|
|
@@QName: |
90 |
|
|
ev:click |
91 |
|
|
@@Description: |
92 |
|
|
@@@lang:en |
93 |
|
|
@@@@: |
94 |
|
|
A pointing device button is clicked over an element. The |
95 |
|
|
definition of a <QUOTE:click> depends on the environment |
96 |
|
|
configuration. |
97 |
|
|
\ |
98 |
|
|
In the case of nested elements, this event is always targeted |
99 |
|
|
at the most deeply nested element. |
100 |
|
|
\ |
101 |
|
|
Events <EV:ev:mousedown> and <EV:ev:mouseup> are |
102 |
|
|
dispatched before the <EV:ev:click>. The target node |
103 |
|
|
must be the same betweeb these three events; otherwise, i.e. |
104 |
|
|
<EV:ev:mousemove> and <EV:ev:mouseout> occur betweeb the |
105 |
|
|
press and release of the button, <EV:ev:click> cannot occur. |
106 |
|
|
@@Type:MouseEvent |
107 |
|
|
@@IsBubbling:1 |
108 |
|
|
@@IsCancelable:1 |
109 |
|
|
@@EventTarget: |
110 |
|
|
@@@Type: |
111 |
|
|
DOMCore:Element |
112 |
|
|
@@SpecLevel:2 |
113 |
|
|
@@ContextInfo: |
114 |
|
|
@@@Attr: |
115 |
|
|
@@@@IF:MouseEvent |
116 |
|
|
@@@@Name:screenX |
117 |
|
|
@@@Attr: |
118 |
|
|
@@@@IF:MouseEvent |
119 |
|
|
@@@@Name:screenY |
120 |
|
|
@@@Attr: |
121 |
|
|
@@@@IF:MouseEvent |
122 |
|
|
@@@@Name:clientX |
123 |
|
|
@@@Attr: |
124 |
|
|
@@@@IF:MouseEvent |
125 |
|
|
@@@@Name:clientY |
126 |
|
|
@@@Attr: |
127 |
|
|
@@@@IF:MouseEvent |
128 |
|
|
@@@@Name:altKey |
129 |
|
|
@@@Attr: |
130 |
|
|
@@@@IF:MouseEvent |
131 |
|
|
@@@@Name:ctrlKey |
132 |
|
|
@@@Attr: |
133 |
|
|
@@@@IF:MouseEvent |
134 |
|
|
@@@@Name:shiftKey |
135 |
|
|
@@@Attr: |
136 |
|
|
@@@@IF:MouseEvent |
137 |
|
|
@@@@Name:metaKey |
138 |
|
|
@@@ImplNote: |
139 |
|
|
@@@@lang:en |
140 |
|
|
@@@@@: |
141 |
|
|
<A:MouseEvent.altGraphKey> |
142 |
|
|
@@@Attr: |
143 |
|
|
@@@@IF:MouseEvent |
144 |
|
|
@@@@Name:button |
145 |
|
|
@@@Attr: |
146 |
|
|
@@@@IF: |
147 |
|
|
DOMUIEvents:UIEvent |
148 |
|
|
@@@@Name:view |
149 |
|
|
@@@Attr: |
150 |
|
|
@@@@IF: |
151 |
|
|
DOMUIEvents:UIEvent |
152 |
|
|
@@@@Name:detail |
153 |
|
|
@@@@Type: |
154 |
|
|
DOMMain:unsigned-long |
155 |
|
|
@@@@Description: |
156 |
|
|
@@@@@lang:en |
157 |
|
|
@@@@@@: |
158 |
|
|
The number of consecutive clicks of a pointing device button |
159 |
|
|
during a user action. |
160 |
|
|
\ |
161 |
|
|
{NOTE:: The notion of consecutive clicks depends on |
162 |
|
|
the environment configuration. |
163 |
|
|
\ |
164 |
|
|
} |
165 |
|
|
@Event: |
166 |
|
|
@@Name:mousedown |
167 |
|
|
@@QName: |
168 |
|
|
ev:mousedown |
169 |
|
|
@@Description: |
170 |
|
|
@@@lang:en |
171 |
|
|
@@@@: |
172 |
|
|
A pointing device button is pressed over an element. |
173 |
|
|
\ |
174 |
|
|
In the case of nested elements, this event is always targeted |
175 |
|
|
at the most deeply nested element. |
176 |
|
|
@@Type:MouseEvent |
177 |
|
|
@@IsBubbling:1 |
178 |
|
|
@@IsCancelable:1 |
179 |
|
|
@@EventTarget: |
180 |
|
|
@@@Type: |
181 |
|
|
DOMCore:Element |
182 |
|
|
@@SpecLevel:2 |
183 |
|
|
@@ContextInfo: |
184 |
|
|
@@@Attr: |
185 |
|
|
@@@@IF:MouseEvent |
186 |
|
|
@@@@Name:screenX |
187 |
|
|
@@@Attr: |
188 |
|
|
@@@@IF:MouseEvent |
189 |
|
|
@@@@Name:screenY |
190 |
|
|
@@@Attr: |
191 |
|
|
@@@@IF:MouseEvent |
192 |
|
|
@@@@Name:clientX |
193 |
|
|
@@@Attr: |
194 |
|
|
@@@@IF:MouseEvent |
195 |
|
|
@@@@Name:clientY |
196 |
|
|
@@@Attr: |
197 |
|
|
@@@@IF:MouseEvent |
198 |
|
|
@@@@Name:altKey |
199 |
|
|
@@@Attr: |
200 |
|
|
@@@@IF:MouseEvent |
201 |
|
|
@@@@Name:ctrlKey |
202 |
|
|
@@@Attr: |
203 |
|
|
@@@@IF:MouseEvent |
204 |
|
|
@@@@Name:shiftKey |
205 |
|
|
@@@Attr: |
206 |
|
|
@@@@IF:MouseEvent |
207 |
|
|
@@@@Name:metaKey |
208 |
|
|
@@@ImplNote: |
209 |
|
|
@@@@lang:en |
210 |
|
|
@@@@@: |
211 |
|
|
<A:MouseEvent.altGraphKey> |
212 |
|
|
@@@Attr: |
213 |
|
|
@@@@IF:MouseEvent |
214 |
|
|
@@@@Name:button |
215 |
|
|
@@@Attr: |
216 |
|
|
@@@@IF: |
217 |
|
|
DOMUIEvents:UIEvent |
218 |
|
|
@@@@Name:view |
219 |
|
|
@@@Attr: |
220 |
|
|
@@@@IF: |
221 |
|
|
DOMUIEvents:UIEvent |
222 |
|
|
@@@@Name:detail |
223 |
|
|
@@@@Type: |
224 |
|
|
DOMMain:unsigned-long |
225 |
|
|
@@@@Description: |
226 |
|
|
@@@@@lang:en |
227 |
|
|
@@@@@@: |
228 |
|
|
The number of consecutive clicks of a pointing device button |
229 |
|
|
during a user action. |
230 |
|
|
\ |
231 |
|
|
{NOTE:: The notion of consecutive clicks depends on |
232 |
|
|
the environment configuration. |
233 |
|
|
\ |
234 |
|
|
} |
235 |
|
|
\ |
236 |
|
|
{eg:: |
237 |
|
|
\ |
238 |
|
|
If no click happend before the mousedown, |
239 |
|
|
the value will be <DOM:1>. |
240 |
|
|
\ |
241 |
|
|
} |
242 |
|
|
@Event: |
243 |
|
|
@@Name:mouseup |
244 |
|
|
@@QName: |
245 |
|
|
ev:mouseup |
246 |
|
|
@@Description: |
247 |
|
|
@@@lang:en |
248 |
|
|
@@@@: |
249 |
|
|
A pointing device button is released over an element. |
250 |
|
|
\ |
251 |
|
|
In the case of nested elements, this event is always targeted |
252 |
|
|
at the most deeply nested element. |
253 |
|
|
@@Type:MouseEvent |
254 |
|
|
@@IsBubbling:1 |
255 |
|
|
@@IsCancelable:1 |
256 |
|
|
@@EventTarget: |
257 |
|
|
@@@Type: |
258 |
|
|
DOMCore:Element |
259 |
|
|
@@SpecLevel:2 |
260 |
|
|
@@ContextInfo: |
261 |
|
|
@@@Attr: |
262 |
|
|
@@@@IF:MouseEvent |
263 |
|
|
@@@@Name:screenX |
264 |
|
|
@@@Attr: |
265 |
|
|
@@@@IF:MouseEvent |
266 |
|
|
@@@@Name:screenY |
267 |
|
|
@@@Attr: |
268 |
|
|
@@@@IF:MouseEvent |
269 |
|
|
@@@@Name:clientX |
270 |
|
|
@@@Attr: |
271 |
|
|
@@@@IF:MouseEvent |
272 |
|
|
@@@@Name:clientY |
273 |
|
|
@@@Attr: |
274 |
|
|
@@@@IF:MouseEvent |
275 |
|
|
@@@@Name:altKey |
276 |
|
|
@@@Attr: |
277 |
|
|
@@@@IF:MouseEvent |
278 |
|
|
@@@@Name:ctrlKey |
279 |
|
|
@@@Attr: |
280 |
|
|
@@@@IF:MouseEvent |
281 |
|
|
@@@@Name:shiftKey |
282 |
|
|
@@@Attr: |
283 |
|
|
@@@@IF:MouseEvent |
284 |
|
|
@@@@Name:metaKey |
285 |
|
|
@@@ImplNote: |
286 |
|
|
@@@@lang:en |
287 |
|
|
@@@@@: |
288 |
|
|
<A:MouseEvent.altGraphKey> |
289 |
|
|
@@@Attr: |
290 |
|
|
@@@@IF:MouseEvent |
291 |
|
|
@@@@Name:button |
292 |
|
|
@@@Attr: |
293 |
|
|
@@@@IF: |
294 |
|
|
DOMUIEvents:UIEvent |
295 |
|
|
@@@@Name:view |
296 |
|
|
@@@Attr: |
297 |
|
|
@@@@IF: |
298 |
|
|
DOMUIEvents:UIEvent |
299 |
|
|
@@@@Name:detail |
300 |
|
|
@@@@Type: |
301 |
|
|
DOMMain:unsigned-long |
302 |
|
|
@@@@Description: |
303 |
|
|
@@@@@lang:en |
304 |
|
|
@@@@@@: |
305 |
|
|
The number of consecutive clicks of a pointing device button |
306 |
|
|
during a user action. |
307 |
|
|
\ |
308 |
|
|
{NOTE:: The notion of consecutive clicks depends on |
309 |
|
|
the environment configuration. |
310 |
|
|
\ |
311 |
|
|
} |
312 |
|
|
@Event: |
313 |
|
|
@@Name:mouseover |
314 |
|
|
@@QName: |
315 |
|
|
ev:mouseover |
316 |
|
|
@@Description: |
317 |
|
|
@@@lang:en |
318 |
|
|
@@@@: |
319 |
|
|
A pointing device is moved onto an element. |
320 |
|
|
\ |
321 |
|
|
In the case of nested elements, this event is always targeted |
322 |
|
|
at the most deeply nested element. |
323 |
|
|
@@Type:MouseEvent |
324 |
|
|
@@IsBubbling:1 |
325 |
|
|
@@IsCancelable:1 |
326 |
|
|
@@EventTarget: |
327 |
|
|
@@@Type: |
328 |
|
|
DOMCore:Element |
329 |
|
|
@@SpecLevel:2 |
330 |
|
|
@@ContextInfo: |
331 |
|
|
@@@Attr: |
332 |
|
|
@@@@IF:MouseEvent |
333 |
|
|
@@@@Name:screenX |
334 |
|
|
@@@Attr: |
335 |
|
|
@@@@IF:MouseEvent |
336 |
|
|
@@@@Name:screenY |
337 |
|
|
@@@Attr: |
338 |
|
|
@@@@IF:MouseEvent |
339 |
|
|
@@@@Name:clientX |
340 |
|
|
@@@Attr: |
341 |
|
|
@@@@IF:MouseEvent |
342 |
|
|
@@@@Name:clientY |
343 |
|
|
@@@Attr: |
344 |
|
|
@@@@IF:MouseEvent |
345 |
|
|
@@@@Name:altKey |
346 |
|
|
@@@Attr: |
347 |
|
|
@@@@IF:MouseEvent |
348 |
|
|
@@@@Name:ctrlKey |
349 |
|
|
@@@Attr: |
350 |
|
|
@@@@IF:MouseEvent |
351 |
|
|
@@@@Name:shiftKey |
352 |
|
|
@@@Attr: |
353 |
|
|
@@@@IF:MouseEvent |
354 |
|
|
@@@@Name:metaKey |
355 |
|
|
@@@ImplNote: |
356 |
|
|
@@@@lang:en |
357 |
|
|
@@@@@: |
358 |
|
|
<A:MouseEvent.altGraphKey> |
359 |
|
|
@@@Attr: |
360 |
|
|
@@@@IF:MouseEvent |
361 |
|
|
@@@@Name:button |
362 |
|
|
@@@Attr: |
363 |
|
|
@@@@IF: |
364 |
|
|
DOMUIEvents:UIEvent |
365 |
|
|
@@@@Name:view |
366 |
|
|
@@@Attr: |
367 |
|
|
@@@@IF:MouseEvent |
368 |
|
|
@@@@Name:relatedTarget |
369 |
|
|
@@@@Type: |
370 |
|
|
DOMEvents:EventTarget |
371 |
|
|
@@@@Description: |
372 |
|
|
@@@@@lang:en |
373 |
|
|
@@@@@@: |
374 |
|
|
The event target a pointing device is exiting. |
375 |
|
|
@Event: |
376 |
|
|
@@Name:mousemove |
377 |
|
|
@@QName: |
378 |
|
|
ev:mousemove |
379 |
|
|
@@Description: |
380 |
|
|
@@@lang:en |
381 |
|
|
@@@@: |
382 |
|
|
A pointing device is moved while it is over an element. |
383 |
|
|
\ |
384 |
|
|
In the case of nested elements, this event is always targeted |
385 |
|
|
at the most deeply nested element. |
386 |
|
|
@@Type:MouseEvent |
387 |
|
|
@@IsBubbling:1 |
388 |
|
|
@@IsCancelable:1 |
389 |
|
|
@@EventTarget: |
390 |
|
|
@@@Type: |
391 |
|
|
DOMCore:Element |
392 |
|
|
@@SpecLevel:2 |
393 |
|
|
@@ContextInfo: |
394 |
|
|
@@@Attr: |
395 |
|
|
@@@@IF:MouseEvent |
396 |
|
|
@@@@Name:screenX |
397 |
|
|
@@@Attr: |
398 |
|
|
@@@@IF:MouseEvent |
399 |
|
|
@@@@Name:screenY |
400 |
|
|
@@@Attr: |
401 |
|
|
@@@@IF:MouseEvent |
402 |
|
|
@@@@Name:clientX |
403 |
|
|
@@@Attr: |
404 |
|
|
@@@@IF:MouseEvent |
405 |
|
|
@@@@Name:clientY |
406 |
|
|
@@@Attr: |
407 |
|
|
@@@@IF:MouseEvent |
408 |
|
|
@@@@Name:altKey |
409 |
|
|
@@@Attr: |
410 |
|
|
@@@@IF:MouseEvent |
411 |
|
|
@@@@Name:ctrlKey |
412 |
|
|
@@@Attr: |
413 |
|
|
@@@@IF:MouseEvent |
414 |
|
|
@@@@Name:shiftKey |
415 |
|
|
@@@Attr: |
416 |
|
|
@@@@IF:MouseEvent |
417 |
|
|
@@@@Name:metaKey |
418 |
|
|
@@@ImplNote: |
419 |
|
|
@@@@lang:en |
420 |
|
|
@@@@@: |
421 |
|
|
<A:MouseEvent.altGraphKey> |
422 |
|
|
@@@Attr: |
423 |
|
|
@@@@IF:MouseEvent |
424 |
|
|
@@@@Name:button |
425 |
|
|
@@@Attr: |
426 |
|
|
@@@@IF: |
427 |
|
|
DOMUIEvents:UIEvent |
428 |
|
|
@@@@Name:view |
429 |
|
|
@Event: |
430 |
|
|
@@Name:mouseout |
431 |
|
|
@@QName: |
432 |
|
|
ev:mouseout |
433 |
|
|
@@Description: |
434 |
|
|
@@@lang:en |
435 |
|
|
@@@@: |
436 |
|
|
A pointing device is moved away from an element. |
437 |
|
|
\ |
438 |
|
|
In the case of nested elements, this event is always targeted |
439 |
|
|
at the most deeply nested element. |
440 |
|
|
@@Type:MouseEvent |
441 |
|
|
@@IsBubbling:1 |
442 |
|
|
@@IsCancelable:1 |
443 |
|
|
@@EventTarget: |
444 |
|
|
@@@Type: |
445 |
|
|
DOMCore:Element |
446 |
|
|
@@SpecLevel:2 |
447 |
|
|
@@ContextInfo: |
448 |
|
|
@@@Attr: |
449 |
|
|
@@@@IF:MouseEvent |
450 |
|
|
@@@@Name:screenX |
451 |
|
|
@@@Attr: |
452 |
|
|
@@@@IF:MouseEvent |
453 |
|
|
@@@@Name:screenY |
454 |
|
|
@@@Attr: |
455 |
|
|
@@@@IF:MouseEvent |
456 |
|
|
@@@@Name:clientX |
457 |
|
|
@@@Attr: |
458 |
|
|
@@@@IF:MouseEvent |
459 |
|
|
@@@@Name:clientY |
460 |
|
|
@@@Attr: |
461 |
|
|
@@@@IF:MouseEvent |
462 |
|
|
@@@@Name:altKey |
463 |
|
|
@@@Attr: |
464 |
|
|
@@@@IF:MouseEvent |
465 |
|
|
@@@@Name:ctrlKey |
466 |
|
|
@@@Attr: |
467 |
|
|
@@@@IF:MouseEvent |
468 |
|
|
@@@@Name:shiftKey |
469 |
|
|
@@@Attr: |
470 |
|
|
@@@@IF:MouseEvent |
471 |
|
|
@@@@Name:metaKey |
472 |
|
|
@@@ImplNote: |
473 |
|
|
@@@@lang:en |
474 |
|
|
@@@@@: |
475 |
|
|
<A:MouseEvent.altGraphKey> |
476 |
|
|
@@@Attr: |
477 |
|
|
@@@@IF:MouseEvent |
478 |
|
|
@@@@Name:button |
479 |
|
|
@@@Attr: |
480 |
|
|
@@@@IF: |
481 |
|
|
DOMUIEvents:UIEvent |
482 |
|
|
@@@@Name:view |
483 |
|
|
@@@Attr: |
484 |
|
|
@@@@IF:MouseEvent |
485 |
|
|
@@@@Name:relatedTarget |
486 |
|
|
@@@@Type: |
487 |
|
|
DOMEvents:EventTarget |
488 |
|
|
@@@@Description: |
489 |
|
|
@@@@@lang:en |
490 |
|
|
@@@@@@: |
491 |
|
|
The event target a pointing device is entering. |
492 |
|
|
@ImplNote: |
493 |
|
|
@@lang:en |
494 |
|
|
@@@: |
495 |
|
|
{P:: An <QUOTE:double click> will produce: |
496 |
|
|
\ |
497 |
|
|
= <ev:mousedown> with <A:UIEvent.detail> that equals <DOM:1>. |
498 |
|
|
\ |
499 |
|
|
= <ev:mouseup> with <A:UIEvent.detail> that equals <DOM:1>. |
500 |
|
|
\ |
501 |
|
|
= <ev:mouseclick> with <A:UIEvent.detail> that equals <DOM:1>. |
502 |
|
|
\ |
503 |
|
|
= <ev:mousedown> with <A:UIEvent.detail> that equals <DOM:2>. |
504 |
|
|
\ |
505 |
|
|
= <ev:mouseup> with <A:UIEvent.detail> that equals <DOM:2>. |
506 |
|
|
\ |
507 |
|
|
= <ev:mouseclick> with <A:UIEvent.detail> that equals <DOM:2>. |
508 |
|
|
\ |
509 |
|
|
} |
510 |
|
|
##EventSet |
511 |
|
|
|
512 |
|
|
IF: |
513 |
|
|
@Name: MouseEvent |
514 |
|
|
@Description: |
515 |
|
|
@@lang:en |
516 |
|
|
@@@: |
517 |
|
|
Provide specific contextual information associated |
518 |
|
|
with Mouse Events. |
519 |
|
|
\ |
520 |
|
|
{NOTE:: In the case of nested elements, mouse events are |
521 |
|
|
always targeted at the most deeply nested element. |
522 |
|
|
\ |
523 |
|
|
} |
524 |
|
|
@Example: |
525 |
|
|
@@FullName: |
526 |
|
|
@@@lang:en |
527 |
|
|
@@@@: |
528 |
|
|
Create an instance of the <IF:MouseEvent> interface |
529 |
|
|
@@Code: |
530 |
|
|
@@@Type: |
531 |
|
|
lang:Perl |
532 |
|
|
@@@@: |
533 |
|
|
my $me = $DocumentEvents->createEvent ('MouseEvent'); |
534 |
|
|
|
535 |
|
|
@ISA: |
536 |
|
|
DOMUIEvents:UIEvent |
537 |
|
|
@Role: |
538 |
|
|
@@@: |
539 |
|
|
DOMEvents:Event |
540 |
|
|
@@compat: |
541 |
|
|
ManakaiDOMEvents:Events |
542 |
|
|
|
543 |
|
|
@Level[list]: 2 |
544 |
|
|
@SpecLevel[list]: |
545 |
|
|
2 |
546 |
|
|
3 |
547 |
|
|
@Attr: |
548 |
|
|
@@Name: screenX |
549 |
|
|
@@Description: |
550 |
|
|
@@@lang:en |
551 |
|
|
@@@@: |
552 |
|
|
The horizontal coordinate at which the event occurred |
553 |
|
|
relative to the origin of the screen coordinate system. |
554 |
|
|
@@Get: |
555 |
|
|
@@@Type: |
556 |
|
|
DOMMain:long |
557 |
|
|
@@@Def: |
558 |
|
|
@@@@Type: |
559 |
|
|
lang:dis |
560 |
|
|
@@@@GetProp: |
561 |
|
|
DOMMouseEvents:screenX |
562 |
|
|
@Attr: |
563 |
|
|
@@Name: screenY |
564 |
|
|
@@Description: |
565 |
|
|
@@@lang:en |
566 |
|
|
@@@@: |
567 |
|
|
The vertical coordinate at which the event occurred |
568 |
|
|
relative to the origin of the screen coordinate system. |
569 |
|
|
@@Get: |
570 |
|
|
@@@Type: |
571 |
|
|
DOMMain:long |
572 |
|
|
@@@Def: |
573 |
|
|
@@@@Type: |
574 |
|
|
lang:dis |
575 |
|
|
@@@@GetProp: |
576 |
|
|
DOMMouseEvents:screenY |
577 |
|
|
@Attr: |
578 |
|
|
@@Name: clientX |
579 |
|
|
@@Description: |
580 |
|
|
@@@lang:en |
581 |
|
|
@@@@: |
582 |
|
|
The horizontal coordinate at which the event |
583 |
|
|
occurred relative to the client area of the DOM |
584 |
|
|
implementation. |
585 |
|
|
@@Get: |
586 |
|
|
@@@Type: |
587 |
|
|
DOMMain:long |
588 |
|
|
@@@Def: |
589 |
|
|
@@@@Type: |
590 |
|
|
lang:dis |
591 |
|
|
@@@@GetProp: |
592 |
|
|
DOMMouseEvents:clientX |
593 |
|
|
@Attr: |
594 |
|
|
@@Name: clientY |
595 |
|
|
@@Description: |
596 |
|
|
@@@lang:en |
597 |
|
|
@@@@: |
598 |
|
|
The vertical coordinate at which the event occurred |
599 |
|
|
relative to the client area of the DOM implementation. |
600 |
|
|
@@Get: |
601 |
|
|
@@@Type: |
602 |
|
|
DOMMain:long |
603 |
|
|
@@@Def: |
604 |
|
|
@@@@Type: |
605 |
|
|
lang:dis |
606 |
|
|
@@@@GetProp: |
607 |
|
|
DOMMouseEvents:clientY |
608 |
|
|
@Attr: |
609 |
|
|
@@Name: ctrlKey |
610 |
|
|
@@Description: |
611 |
|
|
@@@lang:en |
612 |
|
|
@@@@: |
613 |
|
|
Whether the Ctrl (<KEY:Control>) key modifier |
614 |
|
|
is activated or not. |
615 |
|
|
@@Get: |
616 |
|
|
@@@Type: |
617 |
|
|
DOMMain:boolean |
618 |
|
|
@@@InCase: |
619 |
|
|
@@@@Value: true |
620 |
|
|
@@@InCase: |
621 |
|
|
@@@@Value: false |
622 |
|
|
@Attr: |
623 |
|
|
@@Name: shiftKey |
624 |
|
|
@@Description: |
625 |
|
|
@@@lang:en |
626 |
|
|
@@@@: |
627 |
|
|
Whether the <KEY:Shift> key modifier is activated or not. |
628 |
|
|
@@Get: |
629 |
|
|
@@@Type: |
630 |
|
|
DOMMain:boolean |
631 |
|
|
@@@InCase: |
632 |
|
|
@@@@Value: true |
633 |
|
|
@@@InCase: |
634 |
|
|
@@@@Value: false |
635 |
|
|
@Attr: |
636 |
|
|
@@Name: altKey |
637 |
|
|
@@Description: |
638 |
|
|
@@@lang:en |
639 |
|
|
@@@@: |
640 |
|
|
Whether the <KEY:Alt> (alternative) key modifier is |
641 |
|
|
activated or not. |
642 |
|
|
\ |
643 |
|
|
{NOTE:: The Macintosh <CODE:Option> key modifier must be |
644 |
|
|
represented using this key modifier. |
645 |
|
|
\ |
646 |
|
|
} |
647 |
|
|
@@Get: |
648 |
|
|
@@@Type: |
649 |
|
|
DOMMain:boolean |
650 |
|
|
@@@InCase: |
651 |
|
|
@@@@Value: true |
652 |
|
|
@@@InCase: |
653 |
|
|
@@@@Value: false |
654 |
|
|
@Attr: |
655 |
|
|
@@Name: metaKey |
656 |
|
|
@@Description: |
657 |
|
|
@@@lang:en |
658 |
|
|
@@@@: |
659 |
|
|
Whether the <KEY:Meta> key modifier is activated or not. |
660 |
|
|
\ |
661 |
|
|
{NOTE:: The Macintosh <CODE:Command> key modifier must |
662 |
|
|
be represented using this key. |
663 |
|
|
\ |
664 |
|
|
} |
665 |
|
|
@@Get: |
666 |
|
|
@@@Type: |
667 |
|
|
DOMMain:boolean |
668 |
|
|
@@@InCase: |
669 |
|
|
@@@@Value: true |
670 |
|
|
@@@InCase: |
671 |
|
|
@@@@Value: false |
672 |
|
|
@Attr: |
673 |
|
|
@@Name: button |
674 |
|
|
@@Description: |
675 |
|
|
@@@lang:en |
676 |
|
|
@@@@: |
677 |
|
|
Mouse button that changed the state. |
678 |
|
|
@@Get: |
679 |
|
|
@@@Type: |
680 |
|
|
DOMMain:unsigned-short |
681 |
|
|
@@@Description: |
682 |
|
|
@@@@lang:en |
683 |
|
|
@@@@@: |
684 |
|
|
A number that indicates which mouse button changed |
685 |
|
|
the state. |
686 |
|
|
@@@InCase: |
687 |
|
|
@@@@Value:0 |
688 |
|
|
@@@@Description: |
689 |
|
|
@@@@@lang:en |
690 |
|
|
@@@@@@: |
691 |
|
|
The normal button of the mouse. |
692 |
|
|
\ |
693 |
|
|
{NOTE:: In general, it is the left button or the one button |
694 |
|
|
on the Macintosh mouse. |
695 |
|
|
\ |
696 |
|
|
} |
697 |
|
|
@@@InCase: |
698 |
|
|
@@@@Value:1 |
699 |
|
|
@@@@Description: |
700 |
|
|
@@@@@lang:en |
701 |
|
|
@@@@@@: |
702 |
|
|
The extra button. |
703 |
|
|
\ |
704 |
|
|
{NOTE:: In general, it is the middle button and often |
705 |
|
|
combined with the mouse wheel. |
706 |
|
|
\ |
707 |
|
|
} |
708 |
|
|
@@@InCase: |
709 |
|
|
@@@@Value:2 |
710 |
|
|
@@@@Description: |
711 |
|
|
@@@@@lang:en |
712 |
|
|
@@@@@@: |
713 |
|
|
The contextual property button. |
714 |
|
|
\ |
715 |
|
|
{NOTE:: In general, it is the right button. |
716 |
|
|
\ |
717 |
|
|
} |
718 |
|
|
@@@InCase: |
719 |
|
|
@@@@Label: |
720 |
|
|
@@@@@lang:en |
721 |
|
|
@@@@@@: |
722 |
|
|
Values higher than <DOM:2> |
723 |
|
|
@@@@Description: |
724 |
|
|
@@@@@lang:en |
725 |
|
|
@@@@@@: |
726 |
|
|
Other button. |
727 |
|
|
@@@Def: |
728 |
|
|
@@@@Type: |
729 |
|
|
lang:dis |
730 |
|
|
@@@@GetProp: |
731 |
|
|
DOMMouseEvents:button |
732 |
|
|
@Attr: |
733 |
|
|
@@Name: relatedTarget |
734 |
|
|
@@Description: |
735 |
|
|
@@@lang:en |
736 |
|
|
@@@@: |
737 |
|
|
The secondary <IF:EventTarget> related to a UI event. |
738 |
|
|
@@Get: |
739 |
|
|
@@@Type: |
740 |
|
|
DOMEvents:EventTarget |
741 |
|
|
@@@Def: |
742 |
|
|
@@@@Type: |
743 |
|
|
lang:dis |
744 |
|
|
@@@@GetProp: |
745 |
|
|
DOMMouseEvents:relatedTarget |
746 |
|
|
|
747 |
|
|
@ImplNote: |
748 |
|
|
@@lang:en |
749 |
|
|
@@@: |
750 |
|
|
When initializing using <M:initMouseEvent> or |
751 |
|
|
<M:initMouseEventNS>, the DOM implementation should |
752 |
|
|
use the client coordinates <A:clientX> and <A:clientY> |
753 |
|
|
for calculation of other coordinates such as |
754 |
|
|
target coordinates exposed by the DOM implementation. |
755 |
|
|
|
756 |
|
|
@Method: |
757 |
|
|
@@Name: initMouseEvent |
758 |
|
|
@@Description: |
759 |
|
|
@@@lang:en |
760 |
|
|
@@@@: |
761 |
|
|
Initialize the value of a <IF:MouseEvent> object. It has |
762 |
|
|
the same behavior as <M:UIEvent.initUIEvent>. |
763 |
|
|
@@NSVersion:initMouseEventNS |
764 |
|
|
@@Param: |
765 |
|
|
@@@Name: typeArg |
766 |
|
|
@@@Type: |
767 |
|
|
DOMMain:DOMString |
768 |
|
|
@@Param: |
769 |
|
|
@@@Name: canBubbleArg |
770 |
|
|
@@@Type: |
771 |
|
|
DOMMain:boolean |
772 |
|
|
@@@InCase: |
773 |
|
|
@@@@Value: true |
774 |
|
|
@@@InCase: |
775 |
|
|
@@@@Value: false |
776 |
|
|
@@Param: |
777 |
|
|
@@@Name: cancelableArg |
778 |
|
|
@@@Type: |
779 |
|
|
DOMMain:boolean |
780 |
|
|
@@@InCase: |
781 |
|
|
@@@@Value: true |
782 |
|
|
@@@InCase: |
783 |
|
|
@@@@Value: false |
784 |
|
|
@@Param: |
785 |
|
|
@@@Name: viewArg |
786 |
|
|
@@@Type: |
787 |
|
|
DOMViews:AbstractView |
788 |
|
|
@@Param: |
789 |
|
|
@@@Name: detailArg |
790 |
|
|
@@@Type: |
791 |
|
|
DOMMain:long |
792 |
|
|
@@Param: |
793 |
|
|
@@@Name: screenXArg |
794 |
|
|
@@@Type: |
795 |
|
|
DOMMain:long |
796 |
|
|
@@Param: |
797 |
|
|
@@@Name: screenYArg |
798 |
|
|
@@@Type: |
799 |
|
|
DOMMain:long |
800 |
|
|
@@Param: |
801 |
|
|
@@@Name: clientXArg |
802 |
|
|
@@@Type: |
803 |
|
|
DOMMain:long |
804 |
|
|
@@Param: |
805 |
|
|
@@@Name: clientYArg |
806 |
|
|
@@@Type: |
807 |
|
|
DOMMain:long |
808 |
|
|
@@Param: |
809 |
|
|
@@@Name: ctrlKeyArg |
810 |
|
|
@@@Type: |
811 |
|
|
DOMMain:boolean |
812 |
|
|
@@@InCase: |
813 |
|
|
@@@@Value: true |
814 |
|
|
@@@InCase: |
815 |
|
|
@@@@Value: false |
816 |
|
|
@@Param: |
817 |
|
|
@@@Name: altKeyArg |
818 |
|
|
@@@Type: |
819 |
|
|
DOMMain:boolean |
820 |
|
|
@@@InCase: |
821 |
|
|
@@@@Value: true |
822 |
|
|
@@@InCase: |
823 |
|
|
@@@@Value: false |
824 |
|
|
@@Param: |
825 |
|
|
@@@Name: shiftKeyArg |
826 |
|
|
@@@Type: |
827 |
|
|
DOMMain:boolean |
828 |
|
|
@@@InCase: |
829 |
|
|
@@@@Value: true |
830 |
|
|
@@@InCase: |
831 |
|
|
@@@@Value: false |
832 |
|
|
@@Param: |
833 |
|
|
@@@Name: metaKeyArg |
834 |
|
|
@@@Type: |
835 |
|
|
DOMMain:boolean |
836 |
|
|
@@@InCase: |
837 |
|
|
@@@@Value: true |
838 |
|
|
@@@InCase: |
839 |
|
|
@@@@Value: false |
840 |
|
|
@@Param: |
841 |
|
|
@@@Name: buttonArg |
842 |
|
|
@@@Type: |
843 |
|
|
DOMMain:unsigned-short |
844 |
|
|
@@Param: |
845 |
|
|
@@@Name: relatedTargetArg |
846 |
|
|
@@@Type: |
847 |
|
|
DOMEvents:EventTarget |
848 |
|
|
@@Return: |
849 |
|
|
@@@Def: |
850 |
|
|
@@@@Type: |
851 |
|
|
lang:Perl |
852 |
|
|
@@@@@: |
853 |
|
|
__DEEP{ |
854 |
|
|
## Conditional |
855 |
|
|
$self->__SUPER{UIEvent}__::initUIEvent |
856 |
|
|
($typeArg, $canBubbleArg, $cancelableArg, |
857 |
|
|
$viewArg, $detailArg); |
858 |
|
|
}__; |
859 |
|
|
for ($self->{<Q:TreeCore:node>}) { |
860 |
|
|
$_->{<Q:DOMMouseEvents:screenX>} = $screenXArg; |
861 |
|
|
$_->{<Q:DOMMouseEvents:screenY>} = $screenYArg; |
862 |
|
|
$_->{<Q:DOMMouseEvents:clientX>} = $clientXArg; |
863 |
|
|
$_->{<Q:DOMMouseEvents:clientY>} = $clientYArg; |
864 |
|
|
$_->{<Q:DOMMouseEvents:modifiersList>} = ''; |
865 |
|
|
$_->{<Q:DOMMouseEvents:modifiersList>} .= ' Control' |
866 |
|
|
if $ctrlKeyArg; |
867 |
|
|
$_->{<Q:DOMMouseEvents:modifiersList>} .= ' Alt' |
868 |
|
|
if $altKeyArg; |
869 |
|
|
$_->{<Q:DOMMouseEvents:modifiersList>} .= ' Shift' |
870 |
|
|
if $shiftKeyArg; |
871 |
|
|
$_->{<Q:DOMMouseEvents:modifiersList>} .= ' Meta' |
872 |
|
|
if $metaKeyArg; |
873 |
|
|
$_->{<Q:DOMMouseEvents:button>} = $buttonArg; |
874 |
|
|
$_->{<Q:DOMMouseEvents:relatedTarget>} = $relatedTargetArg; |
875 |
|
|
} |
876 |
|
|
@@SpecLevel:2 |
877 |
|
|
@@Level[list]: |
878 |
|
|
2 |
879 |
|
|
3 |
880 |
|
|
@Method: |
881 |
|
|
@@Name: getModifierState |
882 |
|
|
@@Description: |
883 |
|
|
@@@lang:en |
884 |
|
|
@@@@: |
885 |
|
|
Return the state of a modifier. |
886 |
|
|
@@Param: |
887 |
|
|
@@@Name: keyIdentifierArg |
888 |
|
|
@@@Type: |
889 |
|
|
ManakaiDOM:ManakaiDOMKeyIdentifier |
890 |
|
|
@@@Description: |
891 |
|
|
@@@@lang:en |
892 |
|
|
@@@@@: |
893 |
|
|
The modifier key of which the state is queries. |
894 |
|
|
@@@ImplNote: |
895 |
|
|
@@@@lang:en |
896 |
|
|
@@@@@: |
897 |
|
|
If a DOM application wishes to distinguish between |
898 |
|
|
left and right key modifiers, use keyboard events. |
899 |
|
|
@@Return: |
900 |
|
|
@@@Type: |
901 |
|
|
DOMMain:boolean |
902 |
|
|
@@@InCase: |
903 |
|
|
@@@@Value: true |
904 |
|
|
@@@@Description: |
905 |
|
|
@@@@@lang:en |
906 |
|
|
@@@@@@: |
907 |
|
|
The <P:keyIdentifierArg> is a modifier key and |
908 |
|
|
the modifier is activated. |
909 |
|
|
@@@InCase: |
910 |
|
|
@@@@Value: false |
911 |
|
|
@@Level[list]: 3 |
912 |
|
|
@@SpecLevel[list]: 3 |
913 |
|
|
@Method: |
914 |
|
|
@@Name: initMouseEventNS |
915 |
|
|
@@Description: |
916 |
|
|
@@@lang:en |
917 |
|
|
@@@@: |
918 |
|
|
Initialize the value of a <IF:MouseEvent> object. It has |
919 |
|
|
the same behavior as <M:UIEvent.initUIEventNS>. |
920 |
|
|
@@NoNSVersion:initMouseEvent |
921 |
|
|
@@Param: |
922 |
|
|
@@@Name: namespaceURI |
923 |
|
|
@@@Type: |
924 |
|
|
ManakaiDOM:ManakaiDOMNamespaceURI |
925 |
|
|
@@Param: |
926 |
|
|
@@@Name: typeArg |
927 |
|
|
@@@Type: |
928 |
|
|
DOMMain:DOMString |
929 |
|
|
@@Param: |
930 |
|
|
@@@Name: canBubbleArg |
931 |
|
|
@@@Type: |
932 |
|
|
DOMMain:boolean |
933 |
|
|
@@@InCase: |
934 |
|
|
@@@@Value: true |
935 |
|
|
@@@InCase: |
936 |
|
|
@@@@Value: false |
937 |
|
|
@@Param: |
938 |
|
|
@@@Name: cancelableArg |
939 |
|
|
@@@Type: |
940 |
|
|
DOMMain:boolean |
941 |
|
|
@@@InCase: |
942 |
|
|
@@@@Value: true |
943 |
|
|
@@@InCase: |
944 |
|
|
@@@@Value: false |
945 |
|
|
@@Param: |
946 |
|
|
@@@Name: viewArg |
947 |
|
|
@@@Type: |
948 |
|
|
DOMViews:AbstractView |
949 |
|
|
@@Param: |
950 |
|
|
@@@Name: detailArg |
951 |
|
|
@@@Type: |
952 |
|
|
DOMMain:long |
953 |
|
|
@@Param: |
954 |
|
|
@@@Name: screenXArg |
955 |
|
|
@@@Type: |
956 |
|
|
DOMMain:long |
957 |
|
|
@@Param: |
958 |
|
|
@@@Name: screenYArg |
959 |
|
|
@@@Type: |
960 |
|
|
DOMMain:long |
961 |
|
|
@@Param: |
962 |
|
|
@@@Name: clientXArg |
963 |
|
|
@@@Type: |
964 |
|
|
DOMMain:long |
965 |
|
|
@@Param: |
966 |
|
|
@@@Name: clientYArg |
967 |
|
|
@@@Type: |
968 |
|
|
DOMMain:long |
969 |
|
|
@@Param: |
970 |
|
|
@@@Name: buttonArg |
971 |
|
|
@@@Type: |
972 |
|
|
DOMMain:unsigned-short |
973 |
|
|
@@Param: |
974 |
|
|
@@@Name: relatedTargetArg |
975 |
|
|
@@@Type: |
976 |
|
|
DOMEvents:EventTarget |
977 |
|
|
@@Param: |
978 |
|
|
@@@Name: modifiersList |
979 |
|
|
@@@Type: |
980 |
|
|
ManakaiDOM:ManakaiDOMKeyIdentifiers |
981 |
|
|
@@@Description: |
982 |
|
|
@@@@lang:en |
983 |
|
|
@@@@@: |
984 |
|
|
Modifier key identifiers to be activated. |
985 |
|
|
@@Return: |
986 |
|
|
@@@Def: |
987 |
|
|
@@@@Type: |
988 |
|
|
lang:Perl |
989 |
|
|
@@@@@: |
990 |
|
|
__DEEP{ |
991 |
|
|
## Conditional |
992 |
|
|
$self->__SUPER{UIEvent}__::initUIEventNS |
993 |
|
|
($namespaceURI, $typeArg, $canBubbleArg, $cancelableArg, |
994 |
|
|
$viewArg, $detailArg); |
995 |
|
|
}__; |
996 |
|
|
for ($self->{<Q:TreeCore:node>}) { |
997 |
|
|
$_->{<Q:DOMMouseEvents:screenX>} = $screenXArg; |
998 |
|
|
$_->{<Q:DOMMouseEvents:screenY>} = $screenYArg; |
999 |
|
|
$_->{<Q:DOMMouseEvents:clientX>} = $clientXArg; |
1000 |
|
|
$_->{<Q:DOMMouseEvents:clientY>} = $clientYArg; |
1001 |
|
|
$_->{<Q:DOMMouseEvents:button>} = $buttonArg; |
1002 |
|
|
$_->{<Q:DOMMouseEvents:relatedTarget>} = $relatedTargetArg; |
1003 |
|
|
$_->{<Q:DOMMouseEvents:modifiersList>} = $modifiersList; |
1004 |
|
|
} |
1005 |
|
|
@@Level[list]: 3 |
1006 |
|
|
@@SpecLevel[list]: 3 |
1007 |
|
|
##IF:MouseEvent |
1008 |
|
|
|
1009 |
|
|
## DOMMouseEvents.dis ends here |