1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = MouseEvent , extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = MouseScrollEvent , typescript_type = "MouseScrollEvent")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `MouseScrollEvent` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"]
14 pub type MouseScrollEvent;
15 # [wasm_bindgen (structural , method , getter , js_class = "MouseScrollEvent" , js_name = axis)]
16 #[doc = "Getter for the `axis` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/axis)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"]
21 pub fn axis(this: &MouseScrollEvent) -> i32;
22 # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)]
23 #[doc = "The `initMouseScrollEvent()` method."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"]
28 pub fn init_mouse_scroll_event(this: &MouseScrollEvent, type_: &str);
29 # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)]
30 #[doc = "The `initMouseScrollEvent()` method."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"]
35 pub fn init_mouse_scroll_event_with_can_bubble(
36 this: &MouseScrollEvent,
37 type_: &str,
38 can_bubble: bool,
39 );
40 # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)]
41 #[doc = "The `initMouseScrollEvent()` method."]
42 #[doc = ""]
43 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"]
46 pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable(
47 this: &MouseScrollEvent,
48 type_: &str,
49 can_bubble: bool,
50 cancelable: bool,
51 );
52 #[cfg(feature = "Window")]
53 # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)]
54 #[doc = "The `initMouseScrollEvent()` method."]
55 #[doc = ""]
56 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"]
57 #[doc = ""]
58 #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"]
59 pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view(
60 this: &MouseScrollEvent,
61 type_: &str,
62 can_bubble: bool,
63 cancelable: bool,
64 view: Option<&Window>,
65 );
66 #[cfg(feature = "Window")]
67 # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)]
68 #[doc = "The `initMouseScrollEvent()` method."]
69 #[doc = ""]
70 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"]
71 #[doc = ""]
72 #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"]
73 pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail(
74 this: &MouseScrollEvent,
75 type_: &str,
76 can_bubble: bool,
77 cancelable: bool,
78 view: Option<&Window>,
79 detail: i32,
80 );
81 #[cfg(feature = "Window")]
82 # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)]
83 #[doc = "The `initMouseScrollEvent()` method."]
84 #[doc = ""]
85 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"]
86 #[doc = ""]
87 #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"]
88 pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x(
89 this: &MouseScrollEvent,
90 type_: &str,
91 can_bubble: bool,
92 cancelable: bool,
93 view: Option<&Window>,
94 detail: i32,
95 screen_x: i32,
96 );
97 #[cfg(feature = "Window")]
98 # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)]
99 #[doc = "The `initMouseScrollEvent()` method."]
100 #[doc = ""]
101 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"]
102 #[doc = ""]
103 #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"]
104 pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y(
105 this: &MouseScrollEvent,
106 type_: &str,
107 can_bubble: bool,
108 cancelable: bool,
109 view: Option<&Window>,
110 detail: i32,
111 screen_x: i32,
112 screen_y: i32,
113 );
114 #[cfg(feature = "Window")]
115 # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)]
116 #[doc = "The `initMouseScrollEvent()` method."]
117 #[doc = ""]
118 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"]
119 #[doc = ""]
120 #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"]
121 pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x(
122 this: &MouseScrollEvent,
123 type_: &str,
124 can_bubble: bool,
125 cancelable: bool,
126 view: Option<&Window>,
127 detail: i32,
128 screen_x: i32,
129 screen_y: i32,
130 client_x: i32,
131 );
132 #[cfg(feature = "Window")]
133 # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)]
134 #[doc = "The `initMouseScrollEvent()` method."]
135 #[doc = ""]
136 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"]
137 #[doc = ""]
138 #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"]
139 pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y(
140 this: &MouseScrollEvent,
141 type_: &str,
142 can_bubble: bool,
143 cancelable: bool,
144 view: Option<&Window>,
145 detail: i32,
146 screen_x: i32,
147 screen_y: i32,
148 client_x: i32,
149 client_y: i32,
150 );
151 #[cfg(feature = "Window")]
152 # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)]
153 #[doc = "The `initMouseScrollEvent()` method."]
154 #[doc = ""]
155 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"]
156 #[doc = ""]
157 #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"]
158 pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key(
159 this: &MouseScrollEvent,
160 type_: &str,
161 can_bubble: bool,
162 cancelable: bool,
163 view: Option<&Window>,
164 detail: i32,
165 screen_x: i32,
166 screen_y: i32,
167 client_x: i32,
168 client_y: i32,
169 ctrl_key: bool,
170 );
171 #[cfg(feature = "Window")]
172 # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)]
173 #[doc = "The `initMouseScrollEvent()` method."]
174 #[doc = ""]
175 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"]
176 #[doc = ""]
177 #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"]
178 pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key(
179 this: &MouseScrollEvent,
180 type_: &str,
181 can_bubble: bool,
182 cancelable: bool,
183 view: Option<&Window>,
184 detail: i32,
185 screen_x: i32,
186 screen_y: i32,
187 client_x: i32,
188 client_y: i32,
189 ctrl_key: bool,
190 alt_key: bool,
191 );
192 #[cfg(feature = "Window")]
193 # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)]
194 #[doc = "The `initMouseScrollEvent()` method."]
195 #[doc = ""]
196 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"]
197 #[doc = ""]
198 #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"]
199 pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key_and_shift_key(
200 this: &MouseScrollEvent,
201 type_: &str,
202 can_bubble: bool,
203 cancelable: bool,
204 view: Option<&Window>,
205 detail: i32,
206 screen_x: i32,
207 screen_y: i32,
208 client_x: i32,
209 client_y: i32,
210 ctrl_key: bool,
211 alt_key: bool,
212 shift_key: bool,
213 );
214 #[cfg(feature = "Window")]
215 # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)]
216 #[doc = "The `initMouseScrollEvent()` method."]
217 #[doc = ""]
218 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"]
219 #[doc = ""]
220 #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"]
221 pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key(
222 this: &MouseScrollEvent,
223 type_: &str,
224 can_bubble: bool,
225 cancelable: bool,
226 view: Option<&Window>,
227 detail: i32,
228 screen_x: i32,
229 screen_y: i32,
230 client_x: i32,
231 client_y: i32,
232 ctrl_key: bool,
233 alt_key: bool,
234 shift_key: bool,
235 meta_key: bool,
236 );
237 #[cfg(feature = "Window")]
238 # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)]
239 #[doc = "The `initMouseScrollEvent()` method."]
240 #[doc = ""]
241 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"]
242 #[doc = ""]
243 #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"]
244 pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_button(
245 this: &MouseScrollEvent,
246 type_: &str,
247 can_bubble: bool,
248 cancelable: bool,
249 view: Option<&Window>,
250 detail: i32,
251 screen_x: i32,
252 screen_y: i32,
253 client_x: i32,
254 client_y: i32,
255 ctrl_key: bool,
256 alt_key: bool,
257 shift_key: bool,
258 meta_key: bool,
259 button: i16,
260 );
261 #[cfg(all(feature = "EventTarget", feature = "Window",))]
262 # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)]
263 #[doc = "The `initMouseScrollEvent()` method."]
264 #[doc = ""]
265 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"]
266 #[doc = ""]
267 #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `MouseScrollEvent`, `Window`*"]
268 pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_button_and_related_target(
269 this: &MouseScrollEvent,
270 type_: &str,
271 can_bubble: bool,
272 cancelable: bool,
273 view: Option<&Window>,
274 detail: i32,
275 screen_x: i32,
276 screen_y: i32,
277 client_x: i32,
278 client_y: i32,
279 ctrl_key: bool,
280 alt_key: bool,
281 shift_key: bool,
282 meta_key: bool,
283 button: i16,
284 related_target: Option<&EventTarget>,
285 );
286 #[cfg(all(feature = "EventTarget", feature = "Window",))]
287 # [wasm_bindgen (method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent)]
288 #[doc = "The `initMouseScrollEvent()` method."]
289 #[doc = ""]
290 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"]
291 #[doc = ""]
292 #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `MouseScrollEvent`, `Window`*"]
293 pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_button_and_related_target_and_axis(
294 this: &MouseScrollEvent,
295 type_: &str,
296 can_bubble: bool,
297 cancelable: bool,
298 view: Option<&Window>,
299 detail: i32,
300 screen_x: i32,
301 screen_y: i32,
302 client_x: i32,
303 client_y: i32,
304 ctrl_key: bool,
305 alt_key: bool,
306 shift_key: bool,
307 meta_key: bool,
308 button: i16,
309 related_target: Option<&EventTarget>,
310 axis: i32,
311 );
312}
313impl MouseScrollEvent {
314 #[doc = "The `MouseScrollEvent.HORIZONTAL_AXIS` const."]
315 #[doc = ""]
316 #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"]
317 pub const HORIZONTAL_AXIS: i32 = 1u64 as i32;
318 #[doc = "The `MouseScrollEvent.VERTICAL_AXIS` const."]
319 #[doc = ""]
320 #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"]
321 pub const VERTICAL_AXIS: i32 = 2u64 as i32;
322}