Skip to main content

web_sys/features/
gen_MouseEvent.rs

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