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 = "ScrollAreaEvent",
12 typescript_type = "ScrollAreaEvent"
13 )]
14 #[derive(Debug, Clone, PartialEq, Eq)]
15 #[doc = "The `ScrollAreaEvent` class."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"]
20 pub type ScrollAreaEvent;
21 #[wasm_bindgen(method, getter, js_class = "ScrollAreaEvent", js_name = "x")]
22 #[doc = "Getter for the `x` field of this object."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/x)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"]
27 pub fn x(this: &ScrollAreaEvent) -> f32;
28 #[wasm_bindgen(method, getter, js_class = "ScrollAreaEvent", js_name = "y")]
29 #[doc = "Getter for the `y` field of this object."]
30 #[doc = ""]
31 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/y)"]
32 #[doc = ""]
33 #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"]
34 pub fn y(this: &ScrollAreaEvent) -> f32;
35 #[wasm_bindgen(method, getter, js_class = "ScrollAreaEvent", js_name = "width")]
36 #[doc = "Getter for the `width` field of this object."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/width)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"]
41 pub fn width(this: &ScrollAreaEvent) -> f32;
42 #[wasm_bindgen(method, getter, js_class = "ScrollAreaEvent", js_name = "height")]
43 #[doc = "Getter for the `height` field of this object."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/height)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"]
48 pub fn height(this: &ScrollAreaEvent) -> f32;
49 #[wasm_bindgen(method, js_class = "ScrollAreaEvent", js_name = "initScrollAreaEvent")]
50 #[doc = "The `initScrollAreaEvent()` method."]
51 #[doc = ""]
52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"]
55 pub fn init_scroll_area_event(this: &ScrollAreaEvent, type_: &str);
56 #[wasm_bindgen(method, js_class = "ScrollAreaEvent", js_name = "initScrollAreaEvent")]
57 #[doc = "The `initScrollAreaEvent()` method."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"]
62 pub fn init_scroll_area_event_with_can_bubble(
63 this: &ScrollAreaEvent,
64 type_: &str,
65 can_bubble: bool,
66 );
67 #[wasm_bindgen(method, js_class = "ScrollAreaEvent", js_name = "initScrollAreaEvent")]
68 #[doc = "The `initScrollAreaEvent()` method."]
69 #[doc = ""]
70 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"]
71 #[doc = ""]
72 #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"]
73 pub fn init_scroll_area_event_with_can_bubble_and_cancelable(
74 this: &ScrollAreaEvent,
75 type_: &str,
76 can_bubble: bool,
77 cancelable: bool,
78 );
79 #[cfg(feature = "Window")]
80 #[wasm_bindgen(method, js_class = "ScrollAreaEvent", js_name = "initScrollAreaEvent")]
81 #[doc = "The `initScrollAreaEvent()` method."]
82 #[doc = ""]
83 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"]
84 #[doc = ""]
85 #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"]
86 pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view(
87 this: &ScrollAreaEvent,
88 type_: &str,
89 can_bubble: bool,
90 cancelable: bool,
91 view: Option<&Window>,
92 );
93 #[cfg(feature = "Window")]
94 #[wasm_bindgen(method, js_class = "ScrollAreaEvent", js_name = "initScrollAreaEvent")]
95 #[doc = "The `initScrollAreaEvent()` method."]
96 #[doc = ""]
97 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"]
98 #[doc = ""]
99 #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"]
100 pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view_and_detail(
101 this: &ScrollAreaEvent,
102 type_: &str,
103 can_bubble: bool,
104 cancelable: bool,
105 view: Option<&Window>,
106 detail: i32,
107 );
108 #[cfg(feature = "Window")]
109 #[wasm_bindgen(method, js_class = "ScrollAreaEvent", js_name = "initScrollAreaEvent")]
110 #[doc = "The `initScrollAreaEvent()` method."]
111 #[doc = ""]
112 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"]
113 #[doc = ""]
114 #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"]
115 pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view_and_detail_and_x(
116 this: &ScrollAreaEvent,
117 type_: &str,
118 can_bubble: bool,
119 cancelable: bool,
120 view: Option<&Window>,
121 detail: i32,
122 x: f32,
123 );
124 #[cfg(feature = "Window")]
125 #[wasm_bindgen(method, js_class = "ScrollAreaEvent", js_name = "initScrollAreaEvent")]
126 #[doc = "The `initScrollAreaEvent()` method."]
127 #[doc = ""]
128 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"]
129 #[doc = ""]
130 #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"]
131 pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view_and_detail_and_x_and_y(
132 this: &ScrollAreaEvent,
133 type_: &str,
134 can_bubble: bool,
135 cancelable: bool,
136 view: Option<&Window>,
137 detail: i32,
138 x: f32,
139 y: f32,
140 );
141 #[cfg(feature = "Window")]
142 #[wasm_bindgen(method, js_class = "ScrollAreaEvent", js_name = "initScrollAreaEvent")]
143 #[doc = "The `initScrollAreaEvent()` method."]
144 #[doc = ""]
145 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"]
146 #[doc = ""]
147 #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"]
148 pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view_and_detail_and_x_and_y_and_width(
149 this: &ScrollAreaEvent,
150 type_: &str,
151 can_bubble: bool,
152 cancelable: bool,
153 view: Option<&Window>,
154 detail: i32,
155 x: f32,
156 y: f32,
157 width: f32,
158 );
159 #[cfg(feature = "Window")]
160 #[wasm_bindgen(method, js_class = "ScrollAreaEvent", js_name = "initScrollAreaEvent")]
161 #[doc = "The `initScrollAreaEvent()` method."]
162 #[doc = ""]
163 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"]
164 #[doc = ""]
165 #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"]
166 pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view_and_detail_and_x_and_y_and_width_and_height(
167 this: &ScrollAreaEvent,
168 type_: &str,
169 can_bubble: bool,
170 cancelable: bool,
171 view: Option<&Window>,
172 detail: i32,
173 x: f32,
174 y: f32,
175 width: f32,
176 height: f32,
177 );
178}