maxcountryman_web_sys/features/
gen_MouseScrollEvent.rs

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