1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 #[wasm_bindgen(
8 extends = "UiEvent",
9 extends = "Event",
10 extends = "::js_sys::Object",
11 js_name = "MouseEvent",
12 typescript_type = "MouseEvent"
13 )]
14 #[derive(Debug, Clone, PartialEq, Eq)]
15 #[doc = "The `MouseEvent` class."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
20 pub type MouseEvent;
21 #[cfg(not(web_sys_unstable_apis))]
22 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "screenX")]
23 #[doc = "Getter for the `screenX` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/screenX)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
28 pub fn screen_x(this: &MouseEvent) -> i32;
29 #[cfg(not(web_sys_unstable_apis))]
30 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "screenY")]
31 #[doc = "Getter for the `screenY` field of this object."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/screenY)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
36 pub fn screen_y(this: &MouseEvent) -> i32;
37 #[cfg(not(web_sys_unstable_apis))]
38 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "clientX")]
39 #[doc = "Getter for the `clientX` field of this object."]
40 #[doc = ""]
41 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientX)"]
42 #[doc = ""]
43 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
44 pub fn client_x(this: &MouseEvent) -> i32;
45 #[cfg(not(web_sys_unstable_apis))]
46 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "clientY")]
47 #[doc = "Getter for the `clientY` field of this object."]
48 #[doc = ""]
49 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientY)"]
50 #[doc = ""]
51 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
52 pub fn client_y(this: &MouseEvent) -> i32;
53 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "x")]
54 #[doc = "Getter for the `x` field of this object."]
55 #[doc = ""]
56 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/x)"]
57 #[doc = ""]
58 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
59 pub fn x(this: &MouseEvent) -> i32;
60 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "y")]
61 #[doc = "Getter for the `y` field of this object."]
62 #[doc = ""]
63 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/y)"]
64 #[doc = ""]
65 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
66 pub fn y(this: &MouseEvent) -> i32;
67 #[cfg(not(web_sys_unstable_apis))]
68 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "offsetX")]
69 #[doc = "Getter for the `offsetX` field of this object."]
70 #[doc = ""]
71 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/offsetX)"]
72 #[doc = ""]
73 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
74 pub fn offset_x(this: &MouseEvent) -> i32;
75 #[cfg(not(web_sys_unstable_apis))]
76 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "offsetY")]
77 #[doc = "Getter for the `offsetY` field of this object."]
78 #[doc = ""]
79 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/offsetY)"]
80 #[doc = ""]
81 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
82 pub fn offset_y(this: &MouseEvent) -> i32;
83 #[cfg(not(web_sys_unstable_apis))]
84 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "pageX")]
85 #[doc = "Getter for the `pageX` field of this object."]
86 #[doc = ""]
87 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/pageX)"]
88 #[doc = ""]
89 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
90 pub fn page_x(this: &MouseEvent) -> i32;
91 #[cfg(not(web_sys_unstable_apis))]
92 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "pageY")]
93 #[doc = "Getter for the `pageY` field of this object."]
94 #[doc = ""]
95 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/pageY)"]
96 #[doc = ""]
97 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
98 pub fn page_y(this: &MouseEvent) -> i32;
99 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "ctrlKey")]
100 #[doc = "Getter for the `ctrlKey` field of this object."]
101 #[doc = ""]
102 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/ctrlKey)"]
103 #[doc = ""]
104 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
105 pub fn ctrl_key(this: &MouseEvent) -> bool;
106 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "shiftKey")]
107 #[doc = "Getter for the `shiftKey` field of this object."]
108 #[doc = ""]
109 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/shiftKey)"]
110 #[doc = ""]
111 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
112 pub fn shift_key(this: &MouseEvent) -> bool;
113 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "altKey")]
114 #[doc = "Getter for the `altKey` field of this object."]
115 #[doc = ""]
116 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/altKey)"]
117 #[doc = ""]
118 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
119 pub fn alt_key(this: &MouseEvent) -> bool;
120 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "metaKey")]
121 #[doc = "Getter for the `metaKey` field of this object."]
122 #[doc = ""]
123 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/metaKey)"]
124 #[doc = ""]
125 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
126 pub fn meta_key(this: &MouseEvent) -> bool;
127 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "button")]
128 #[doc = "Getter for the `button` field of this object."]
129 #[doc = ""]
130 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button)"]
131 #[doc = ""]
132 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
133 pub fn button(this: &MouseEvent) -> i16;
134 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "buttons")]
135 #[doc = "Getter for the `buttons` field of this object."]
136 #[doc = ""]
137 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons)"]
138 #[doc = ""]
139 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
140 pub fn buttons(this: &MouseEvent) -> u16;
141 #[cfg(feature = "EventTarget")]
142 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "relatedTarget")]
143 #[doc = "Getter for the `relatedTarget` field of this object."]
144 #[doc = ""]
145 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/relatedTarget)"]
146 #[doc = ""]
147 #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `MouseEvent`*"]
148 pub fn related_target(this: &MouseEvent) -> Option<EventTarget>;
149 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "region")]
150 #[doc = "Getter for the `region` field of this object."]
151 #[doc = ""]
152 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/region)"]
153 #[doc = ""]
154 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
155 pub fn region(this: &MouseEvent) -> Option<::alloc::string::String>;
156 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "movementX")]
157 #[doc = "Getter for the `movementX` field of this object."]
158 #[doc = ""]
159 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementX)"]
160 #[doc = ""]
161 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
162 pub fn movement_x(this: &MouseEvent) -> i32;
163 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "movementY")]
164 #[doc = "Getter for the `movementY` field of this object."]
165 #[doc = ""]
166 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementY)"]
167 #[doc = ""]
168 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
169 pub fn movement_y(this: &MouseEvent) -> i32;
170 #[cfg(web_sys_unstable_apis)]
171 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "screenX")]
172 #[doc = "Getter for the `screenX` field of this object."]
173 #[doc = ""]
174 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/screenX)"]
175 #[doc = ""]
176 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
177 #[doc = ""]
178 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
179 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
180 pub fn screen_x(this: &MouseEvent) -> f64;
181 #[cfg(web_sys_unstable_apis)]
182 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "screenY")]
183 #[doc = "Getter for the `screenY` field of this object."]
184 #[doc = ""]
185 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/screenY)"]
186 #[doc = ""]
187 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
188 #[doc = ""]
189 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
190 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
191 pub fn screen_y(this: &MouseEvent) -> f64;
192 #[cfg(web_sys_unstable_apis)]
193 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "clientX")]
194 #[doc = "Getter for the `clientX` field of this object."]
195 #[doc = ""]
196 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientX)"]
197 #[doc = ""]
198 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
199 #[doc = ""]
200 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
201 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
202 pub fn client_x(this: &MouseEvent) -> f64;
203 #[cfg(web_sys_unstable_apis)]
204 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "clientY")]
205 #[doc = "Getter for the `clientY` field of this object."]
206 #[doc = ""]
207 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientY)"]
208 #[doc = ""]
209 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
210 #[doc = ""]
211 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
212 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
213 pub fn client_y(this: &MouseEvent) -> f64;
214 #[cfg(web_sys_unstable_apis)]
215 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "offsetX")]
216 #[doc = "Getter for the `offsetX` field of this object."]
217 #[doc = ""]
218 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/offsetX)"]
219 #[doc = ""]
220 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
221 #[doc = ""]
222 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
223 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
224 pub fn offset_x(this: &MouseEvent) -> f64;
225 #[cfg(web_sys_unstable_apis)]
226 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "offsetY")]
227 #[doc = "Getter for the `offsetY` field of this object."]
228 #[doc = ""]
229 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/offsetY)"]
230 #[doc = ""]
231 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
232 #[doc = ""]
233 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
234 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
235 pub fn offset_y(this: &MouseEvent) -> f64;
236 #[cfg(web_sys_unstable_apis)]
237 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "pageX")]
238 #[doc = "Getter for the `pageX` field of this object."]
239 #[doc = ""]
240 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/pageX)"]
241 #[doc = ""]
242 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
243 #[doc = ""]
244 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
245 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
246 pub fn page_x(this: &MouseEvent) -> f64;
247 #[cfg(web_sys_unstable_apis)]
248 #[wasm_bindgen(method, getter, js_class = "MouseEvent", js_name = "pageY")]
249 #[doc = "Getter for the `pageY` field of this object."]
250 #[doc = ""]
251 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/pageY)"]
252 #[doc = ""]
253 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
254 #[doc = ""]
255 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
256 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
257 pub fn page_y(this: &MouseEvent) -> f64;
258 #[wasm_bindgen(catch, constructor, js_class = "MouseEvent")]
259 #[doc = "The `new MouseEvent(..)` constructor, creating a new instance of `MouseEvent`."]
260 #[doc = ""]
261 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent)"]
262 #[doc = ""]
263 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
264 pub fn new(type_arg: &str) -> Result<MouseEvent, JsValue>;
265 #[cfg(feature = "MouseEventInit")]
266 #[wasm_bindgen(catch, constructor, js_class = "MouseEvent")]
267 #[doc = "The `new MouseEvent(..)` constructor, creating a new instance of `MouseEvent`."]
268 #[doc = ""]
269 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent)"]
270 #[doc = ""]
271 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `MouseEventInit`*"]
272 pub fn new_with_mouse_event_init_dict(
273 type_arg: &str,
274 mouse_event_init_dict: &MouseEventInit,
275 ) -> Result<MouseEvent, JsValue>;
276 #[wasm_bindgen(method, js_class = "MouseEvent", js_name = "getModifierState")]
277 #[doc = "The `getModifierState()` method."]
278 #[doc = ""]
279 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/getModifierState)"]
280 #[doc = ""]
281 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
282 pub fn get_modifier_state(this: &MouseEvent, key_arg: &str) -> bool;
283 #[wasm_bindgen(method, js_class = "MouseEvent", js_name = "initMouseEvent")]
284 #[doc = "The `initMouseEvent()` method."]
285 #[doc = ""]
286 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"]
287 #[doc = ""]
288 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
289 pub fn init_mouse_event(this: &MouseEvent, type_arg: &str);
290 #[wasm_bindgen(method, js_class = "MouseEvent", js_name = "initMouseEvent")]
291 #[doc = "The `initMouseEvent()` method."]
292 #[doc = ""]
293 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"]
294 #[doc = ""]
295 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
296 pub fn init_mouse_event_with_can_bubble_arg(
297 this: &MouseEvent,
298 type_arg: &str,
299 can_bubble_arg: bool,
300 );
301 #[wasm_bindgen(method, js_class = "MouseEvent", js_name = "initMouseEvent")]
302 #[doc = "The `initMouseEvent()` method."]
303 #[doc = ""]
304 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"]
305 #[doc = ""]
306 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"]
307 pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg(
308 this: &MouseEvent,
309 type_arg: &str,
310 can_bubble_arg: bool,
311 cancelable_arg: bool,
312 );
313 #[cfg(feature = "Window")]
314 #[wasm_bindgen(method, js_class = "MouseEvent", js_name = "initMouseEvent")]
315 #[doc = "The `initMouseEvent()` method."]
316 #[doc = ""]
317 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"]
318 #[doc = ""]
319 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"]
320 pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg(
321 this: &MouseEvent,
322 type_arg: &str,
323 can_bubble_arg: bool,
324 cancelable_arg: bool,
325 view_arg: Option<&Window>,
326 );
327 #[cfg(feature = "Window")]
328 #[wasm_bindgen(method, js_class = "MouseEvent", js_name = "initMouseEvent")]
329 #[doc = "The `initMouseEvent()` method."]
330 #[doc = ""]
331 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"]
332 #[doc = ""]
333 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"]
334 pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg(
335 this: &MouseEvent,
336 type_arg: &str,
337 can_bubble_arg: bool,
338 cancelable_arg: bool,
339 view_arg: Option<&Window>,
340 detail_arg: i32,
341 );
342 #[cfg(feature = "Window")]
343 #[wasm_bindgen(method, js_class = "MouseEvent", js_name = "initMouseEvent")]
344 #[doc = "The `initMouseEvent()` method."]
345 #[doc = ""]
346 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"]
347 #[doc = ""]
348 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"]
349 pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg(
350 this: &MouseEvent,
351 type_arg: &str,
352 can_bubble_arg: bool,
353 cancelable_arg: bool,
354 view_arg: Option<&Window>,
355 detail_arg: i32,
356 screen_x_arg: i32,
357 );
358 #[cfg(feature = "Window")]
359 #[wasm_bindgen(method, js_class = "MouseEvent", js_name = "initMouseEvent")]
360 #[doc = "The `initMouseEvent()` method."]
361 #[doc = ""]
362 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"]
363 #[doc = ""]
364 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"]
365 pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg(
366 this: &MouseEvent,
367 type_arg: &str,
368 can_bubble_arg: bool,
369 cancelable_arg: bool,
370 view_arg: Option<&Window>,
371 detail_arg: i32,
372 screen_x_arg: i32,
373 screen_y_arg: i32,
374 );
375 #[cfg(feature = "Window")]
376 #[wasm_bindgen(method, js_class = "MouseEvent", js_name = "initMouseEvent")]
377 #[doc = "The `initMouseEvent()` method."]
378 #[doc = ""]
379 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"]
380 #[doc = ""]
381 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"]
382 pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg(
383 this: &MouseEvent,
384 type_arg: &str,
385 can_bubble_arg: bool,
386 cancelable_arg: bool,
387 view_arg: Option<&Window>,
388 detail_arg: i32,
389 screen_x_arg: i32,
390 screen_y_arg: i32,
391 client_x_arg: i32,
392 );
393 #[cfg(feature = "Window")]
394 #[wasm_bindgen(method, js_class = "MouseEvent", js_name = "initMouseEvent")]
395 #[doc = "The `initMouseEvent()` method."]
396 #[doc = ""]
397 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"]
398 #[doc = ""]
399 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"]
400 pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg(
401 this: &MouseEvent,
402 type_arg: &str,
403 can_bubble_arg: bool,
404 cancelable_arg: bool,
405 view_arg: Option<&Window>,
406 detail_arg: i32,
407 screen_x_arg: i32,
408 screen_y_arg: i32,
409 client_x_arg: i32,
410 client_y_arg: i32,
411 );
412 #[cfg(feature = "Window")]
413 #[wasm_bindgen(method, js_class = "MouseEvent", js_name = "initMouseEvent")]
414 #[doc = "The `initMouseEvent()` method."]
415 #[doc = ""]
416 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"]
417 #[doc = ""]
418 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"]
419 pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg(
420 this: &MouseEvent,
421 type_arg: &str,
422 can_bubble_arg: bool,
423 cancelable_arg: bool,
424 view_arg: Option<&Window>,
425 detail_arg: i32,
426 screen_x_arg: i32,
427 screen_y_arg: i32,
428 client_x_arg: i32,
429 client_y_arg: i32,
430 ctrl_key_arg: bool,
431 );
432 #[cfg(feature = "Window")]
433 #[wasm_bindgen(method, js_class = "MouseEvent", js_name = "initMouseEvent")]
434 #[doc = "The `initMouseEvent()` method."]
435 #[doc = ""]
436 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"]
437 #[doc = ""]
438 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"]
439 pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg(
440 this: &MouseEvent,
441 type_arg: &str,
442 can_bubble_arg: bool,
443 cancelable_arg: bool,
444 view_arg: Option<&Window>,
445 detail_arg: i32,
446 screen_x_arg: i32,
447 screen_y_arg: i32,
448 client_x_arg: i32,
449 client_y_arg: i32,
450 ctrl_key_arg: bool,
451 alt_key_arg: bool,
452 );
453 #[cfg(feature = "Window")]
454 #[wasm_bindgen(method, js_class = "MouseEvent", js_name = "initMouseEvent")]
455 #[doc = "The `initMouseEvent()` method."]
456 #[doc = ""]
457 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"]
458 #[doc = ""]
459 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"]
460 pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg_and_shift_key_arg(
461 this: &MouseEvent,
462 type_arg: &str,
463 can_bubble_arg: bool,
464 cancelable_arg: bool,
465 view_arg: Option<&Window>,
466 detail_arg: i32,
467 screen_x_arg: i32,
468 screen_y_arg: i32,
469 client_x_arg: i32,
470 client_y_arg: i32,
471 ctrl_key_arg: bool,
472 alt_key_arg: bool,
473 shift_key_arg: bool,
474 );
475 #[cfg(feature = "Window")]
476 #[wasm_bindgen(method, js_class = "MouseEvent", js_name = "initMouseEvent")]
477 #[doc = "The `initMouseEvent()` method."]
478 #[doc = ""]
479 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"]
480 #[doc = ""]
481 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"]
482 pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg_and_shift_key_arg_and_meta_key_arg(
483 this: &MouseEvent,
484 type_arg: &str,
485 can_bubble_arg: bool,
486 cancelable_arg: bool,
487 view_arg: Option<&Window>,
488 detail_arg: i32,
489 screen_x_arg: i32,
490 screen_y_arg: i32,
491 client_x_arg: i32,
492 client_y_arg: i32,
493 ctrl_key_arg: bool,
494 alt_key_arg: bool,
495 shift_key_arg: bool,
496 meta_key_arg: bool,
497 );
498 #[cfg(feature = "Window")]
499 #[wasm_bindgen(method, js_class = "MouseEvent", js_name = "initMouseEvent")]
500 #[doc = "The `initMouseEvent()` method."]
501 #[doc = ""]
502 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"]
503 #[doc = ""]
504 #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"]
505 pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg_and_shift_key_arg_and_meta_key_arg_and_button_arg(
506 this: &MouseEvent,
507 type_arg: &str,
508 can_bubble_arg: bool,
509 cancelable_arg: bool,
510 view_arg: Option<&Window>,
511 detail_arg: i32,
512 screen_x_arg: i32,
513 screen_y_arg: i32,
514 client_x_arg: i32,
515 client_y_arg: i32,
516 ctrl_key_arg: bool,
517 alt_key_arg: bool,
518 shift_key_arg: bool,
519 meta_key_arg: bool,
520 button_arg: i16,
521 );
522 #[cfg(all(feature = "EventTarget", feature = "Window",))]
523 #[wasm_bindgen(method, js_class = "MouseEvent", js_name = "initMouseEvent")]
524 #[doc = "The `initMouseEvent()` method."]
525 #[doc = ""]
526 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"]
527 #[doc = ""]
528 #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `MouseEvent`, `Window`*"]
529 pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg_and_shift_key_arg_and_meta_key_arg_and_button_arg_and_related_target_arg(
530 this: &MouseEvent,
531 type_arg: &str,
532 can_bubble_arg: bool,
533 cancelable_arg: bool,
534 view_arg: Option<&Window>,
535 detail_arg: i32,
536 screen_x_arg: i32,
537 screen_y_arg: i32,
538 client_x_arg: i32,
539 client_y_arg: i32,
540 ctrl_key_arg: bool,
541 alt_key_arg: bool,
542 shift_key_arg: bool,
543 meta_key_arg: bool,
544 button_arg: i16,
545 related_target_arg: Option<&EventTarget>,
546 );
547}