1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GestureEventInit)]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `GestureEventInit` dictionary."]
11 #[doc = ""]
12 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
13 #[doc = ""]
14 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
15 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
16 pub type GestureEventInit;
17 #[cfg(web_sys_unstable_apis)]
18 #[doc = "Get the `bubbles` field of this object."]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
21 #[doc = ""]
22 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
23 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
24 #[wasm_bindgen(method, getter = "bubbles")]
25 pub fn get_bubbles(this: &GestureEventInit) -> Option<bool>;
26 #[cfg(web_sys_unstable_apis)]
27 #[doc = "Change the `bubbles` field of this object."]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
30 #[doc = ""]
31 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
32 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
33 #[wasm_bindgen(method, setter = "bubbles")]
34 pub fn set_bubbles(this: &GestureEventInit, val: bool);
35 #[cfg(web_sys_unstable_apis)]
36 #[doc = "Get the `cancelable` field of this object."]
37 #[doc = ""]
38 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
39 #[doc = ""]
40 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
41 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
42 #[wasm_bindgen(method, getter = "cancelable")]
43 pub fn get_cancelable(this: &GestureEventInit) -> Option<bool>;
44 #[cfg(web_sys_unstable_apis)]
45 #[doc = "Change the `cancelable` field of this object."]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
48 #[doc = ""]
49 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
50 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
51 #[wasm_bindgen(method, setter = "cancelable")]
52 pub fn set_cancelable(this: &GestureEventInit, val: bool);
53 #[cfg(web_sys_unstable_apis)]
54 #[doc = "Get the `composed` field of this object."]
55 #[doc = ""]
56 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
57 #[doc = ""]
58 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
59 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
60 #[wasm_bindgen(method, getter = "composed")]
61 pub fn get_composed(this: &GestureEventInit) -> Option<bool>;
62 #[cfg(web_sys_unstable_apis)]
63 #[doc = "Change the `composed` field of this object."]
64 #[doc = ""]
65 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
66 #[doc = ""]
67 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
68 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
69 #[wasm_bindgen(method, setter = "composed")]
70 pub fn set_composed(this: &GestureEventInit, val: bool);
71 #[cfg(web_sys_unstable_apis)]
72 #[doc = "Get the `detail` field of this object."]
73 #[doc = ""]
74 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
75 #[doc = ""]
76 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
77 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
78 #[wasm_bindgen(method, getter = "detail")]
79 pub fn get_detail(this: &GestureEventInit) -> Option<i32>;
80 #[cfg(web_sys_unstable_apis)]
81 #[doc = "Change the `detail` field of this object."]
82 #[doc = ""]
83 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
84 #[doc = ""]
85 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
86 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
87 #[wasm_bindgen(method, setter = "detail")]
88 pub fn set_detail(this: &GestureEventInit, val: i32);
89 #[cfg(web_sys_unstable_apis)]
90 #[cfg(feature = "Window")]
91 #[doc = "Get the `view` field of this object."]
92 #[doc = ""]
93 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`, `Window`*"]
94 #[doc = ""]
95 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
96 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
97 #[wasm_bindgen(method, getter = "view")]
98 pub fn get_view(this: &GestureEventInit) -> Option<Window>;
99 #[cfg(web_sys_unstable_apis)]
100 #[cfg(feature = "Window")]
101 #[doc = "Change the `view` field of this object."]
102 #[doc = ""]
103 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`, `Window`*"]
104 #[doc = ""]
105 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
106 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
107 #[wasm_bindgen(method, setter = "view")]
108 pub fn set_view(this: &GestureEventInit, val: Option<&Window>);
109 #[cfg(web_sys_unstable_apis)]
110 #[doc = "Get the `altKey` field of this object."]
111 #[doc = ""]
112 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
113 #[doc = ""]
114 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
115 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
116 #[wasm_bindgen(method, getter = "altKey")]
117 pub fn get_alt_key(this: &GestureEventInit) -> Option<bool>;
118 #[cfg(web_sys_unstable_apis)]
119 #[doc = "Change the `altKey` field of this object."]
120 #[doc = ""]
121 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
122 #[doc = ""]
123 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
124 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
125 #[wasm_bindgen(method, setter = "altKey")]
126 pub fn set_alt_key(this: &GestureEventInit, val: bool);
127 #[cfg(web_sys_unstable_apis)]
128 #[doc = "Get the `clientX` field of this object."]
129 #[doc = ""]
130 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
131 #[doc = ""]
132 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
133 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
134 #[wasm_bindgen(method, getter = "clientX")]
135 pub fn get_client_x(this: &GestureEventInit) -> Option<i32>;
136 #[cfg(web_sys_unstable_apis)]
137 #[doc = "Change the `clientX` field of this object."]
138 #[doc = ""]
139 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
140 #[doc = ""]
141 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
142 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
143 #[wasm_bindgen(method, setter = "clientX")]
144 pub fn set_client_x(this: &GestureEventInit, val: i32);
145 #[cfg(web_sys_unstable_apis)]
146 #[doc = "Get the `clientY` field of this object."]
147 #[doc = ""]
148 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
149 #[doc = ""]
150 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
151 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
152 #[wasm_bindgen(method, getter = "clientY")]
153 pub fn get_client_y(this: &GestureEventInit) -> Option<i32>;
154 #[cfg(web_sys_unstable_apis)]
155 #[doc = "Change the `clientY` field of this object."]
156 #[doc = ""]
157 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
158 #[doc = ""]
159 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
160 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
161 #[wasm_bindgen(method, setter = "clientY")]
162 pub fn set_client_y(this: &GestureEventInit, val: i32);
163 #[cfg(web_sys_unstable_apis)]
164 #[doc = "Get the `ctrlKey` field of this object."]
165 #[doc = ""]
166 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
167 #[doc = ""]
168 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
169 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
170 #[wasm_bindgen(method, getter = "ctrlKey")]
171 pub fn get_ctrl_key(this: &GestureEventInit) -> Option<bool>;
172 #[cfg(web_sys_unstable_apis)]
173 #[doc = "Change the `ctrlKey` field of this object."]
174 #[doc = ""]
175 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
176 #[doc = ""]
177 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
178 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
179 #[wasm_bindgen(method, setter = "ctrlKey")]
180 pub fn set_ctrl_key(this: &GestureEventInit, val: bool);
181 #[cfg(web_sys_unstable_apis)]
182 #[doc = "Get the `metaKey` field of this object."]
183 #[doc = ""]
184 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
185 #[doc = ""]
186 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
187 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
188 #[wasm_bindgen(method, getter = "metaKey")]
189 pub fn get_meta_key(this: &GestureEventInit) -> Option<bool>;
190 #[cfg(web_sys_unstable_apis)]
191 #[doc = "Change the `metaKey` field of this object."]
192 #[doc = ""]
193 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
194 #[doc = ""]
195 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
196 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
197 #[wasm_bindgen(method, setter = "metaKey")]
198 pub fn set_meta_key(this: &GestureEventInit, val: bool);
199 #[cfg(web_sys_unstable_apis)]
200 #[doc = "Get the `rotation` field of this object."]
201 #[doc = ""]
202 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
203 #[doc = ""]
204 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
205 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
206 #[wasm_bindgen(method, getter = "rotation")]
207 pub fn get_rotation(this: &GestureEventInit) -> Option<f32>;
208 #[cfg(web_sys_unstable_apis)]
209 #[doc = "Change the `rotation` field of this object."]
210 #[doc = ""]
211 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
212 #[doc = ""]
213 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
214 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
215 #[wasm_bindgen(method, setter = "rotation")]
216 pub fn set_rotation(this: &GestureEventInit, val: f32);
217 #[cfg(web_sys_unstable_apis)]
218 #[doc = "Get the `scale` field of this object."]
219 #[doc = ""]
220 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
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 #[wasm_bindgen(method, getter = "scale")]
225 pub fn get_scale(this: &GestureEventInit) -> Option<f32>;
226 #[cfg(web_sys_unstable_apis)]
227 #[doc = "Change the `scale` field of this object."]
228 #[doc = ""]
229 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
230 #[doc = ""]
231 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
232 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
233 #[wasm_bindgen(method, setter = "scale")]
234 pub fn set_scale(this: &GestureEventInit, val: f32);
235 #[cfg(web_sys_unstable_apis)]
236 #[doc = "Get the `screenX` field of this object."]
237 #[doc = ""]
238 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
239 #[doc = ""]
240 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
241 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
242 #[wasm_bindgen(method, getter = "screenX")]
243 pub fn get_screen_x(this: &GestureEventInit) -> Option<i32>;
244 #[cfg(web_sys_unstable_apis)]
245 #[doc = "Change the `screenX` field of this object."]
246 #[doc = ""]
247 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
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 #[wasm_bindgen(method, setter = "screenX")]
252 pub fn set_screen_x(this: &GestureEventInit, val: i32);
253 #[cfg(web_sys_unstable_apis)]
254 #[doc = "Get the `screenY` field of this object."]
255 #[doc = ""]
256 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
257 #[doc = ""]
258 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
259 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
260 #[wasm_bindgen(method, getter = "screenY")]
261 pub fn get_screen_y(this: &GestureEventInit) -> Option<i32>;
262 #[cfg(web_sys_unstable_apis)]
263 #[doc = "Change the `screenY` field of this object."]
264 #[doc = ""]
265 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
266 #[doc = ""]
267 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
268 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
269 #[wasm_bindgen(method, setter = "screenY")]
270 pub fn set_screen_y(this: &GestureEventInit, val: i32);
271 #[cfg(web_sys_unstable_apis)]
272 #[doc = "Get the `shiftKey` field of this object."]
273 #[doc = ""]
274 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
275 #[doc = ""]
276 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
277 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
278 #[wasm_bindgen(method, getter = "shiftKey")]
279 pub fn get_shift_key(this: &GestureEventInit) -> Option<bool>;
280 #[cfg(web_sys_unstable_apis)]
281 #[doc = "Change the `shiftKey` field of this object."]
282 #[doc = ""]
283 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
284 #[doc = ""]
285 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
286 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
287 #[wasm_bindgen(method, setter = "shiftKey")]
288 pub fn set_shift_key(this: &GestureEventInit, val: bool);
289}
290#[cfg(web_sys_unstable_apis)]
291impl GestureEventInit {
292 #[doc = "Construct a new `GestureEventInit`."]
293 #[doc = ""]
294 #[doc = "*This API requires the following crate features to be activated: `GestureEventInit`*"]
295 #[doc = ""]
296 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
297 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
298 pub fn new() -> Self {
299 #[allow(unused_mut)]
300 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
301 ret
302 }
303 #[cfg(web_sys_unstable_apis)]
304 #[deprecated = "Use `set_bubbles()` instead."]
305 pub fn bubbles(&mut self, val: bool) -> &mut Self {
306 self.set_bubbles(val);
307 self
308 }
309 #[cfg(web_sys_unstable_apis)]
310 #[deprecated = "Use `set_cancelable()` instead."]
311 pub fn cancelable(&mut self, val: bool) -> &mut Self {
312 self.set_cancelable(val);
313 self
314 }
315 #[cfg(web_sys_unstable_apis)]
316 #[deprecated = "Use `set_composed()` instead."]
317 pub fn composed(&mut self, val: bool) -> &mut Self {
318 self.set_composed(val);
319 self
320 }
321 #[cfg(web_sys_unstable_apis)]
322 #[deprecated = "Use `set_detail()` instead."]
323 pub fn detail(&mut self, val: i32) -> &mut Self {
324 self.set_detail(val);
325 self
326 }
327 #[cfg(web_sys_unstable_apis)]
328 #[cfg(feature = "Window")]
329 #[deprecated = "Use `set_view()` instead."]
330 pub fn view(&mut self, val: Option<&Window>) -> &mut Self {
331 self.set_view(val);
332 self
333 }
334 #[cfg(web_sys_unstable_apis)]
335 #[deprecated = "Use `set_alt_key()` instead."]
336 pub fn alt_key(&mut self, val: bool) -> &mut Self {
337 self.set_alt_key(val);
338 self
339 }
340 #[cfg(web_sys_unstable_apis)]
341 #[deprecated = "Use `set_client_x()` instead."]
342 pub fn client_x(&mut self, val: i32) -> &mut Self {
343 self.set_client_x(val);
344 self
345 }
346 #[cfg(web_sys_unstable_apis)]
347 #[deprecated = "Use `set_client_y()` instead."]
348 pub fn client_y(&mut self, val: i32) -> &mut Self {
349 self.set_client_y(val);
350 self
351 }
352 #[cfg(web_sys_unstable_apis)]
353 #[deprecated = "Use `set_ctrl_key()` instead."]
354 pub fn ctrl_key(&mut self, val: bool) -> &mut Self {
355 self.set_ctrl_key(val);
356 self
357 }
358 #[cfg(web_sys_unstable_apis)]
359 #[deprecated = "Use `set_meta_key()` instead."]
360 pub fn meta_key(&mut self, val: bool) -> &mut Self {
361 self.set_meta_key(val);
362 self
363 }
364 #[cfg(web_sys_unstable_apis)]
365 #[deprecated = "Use `set_rotation()` instead."]
366 pub fn rotation(&mut self, val: f32) -> &mut Self {
367 self.set_rotation(val);
368 self
369 }
370 #[cfg(web_sys_unstable_apis)]
371 #[deprecated = "Use `set_scale()` instead."]
372 pub fn scale(&mut self, val: f32) -> &mut Self {
373 self.set_scale(val);
374 self
375 }
376 #[cfg(web_sys_unstable_apis)]
377 #[deprecated = "Use `set_screen_x()` instead."]
378 pub fn screen_x(&mut self, val: i32) -> &mut Self {
379 self.set_screen_x(val);
380 self
381 }
382 #[cfg(web_sys_unstable_apis)]
383 #[deprecated = "Use `set_screen_y()` instead."]
384 pub fn screen_y(&mut self, val: i32) -> &mut Self {
385 self.set_screen_y(val);
386 self
387 }
388 #[cfg(web_sys_unstable_apis)]
389 #[deprecated = "Use `set_shift_key()` instead."]
390 pub fn shift_key(&mut self, val: bool) -> &mut Self {
391 self.set_shift_key(val);
392 self
393 }
394}
395#[cfg(web_sys_unstable_apis)]
396impl Default for GestureEventInit {
397 fn default() -> Self {
398 Self::new()
399 }
400}