1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = PointerEventInit)]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `PointerEventInit` dictionary."]
10 #[doc = ""]
11 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
12 pub type PointerEventInit;
13 #[doc = "Get the `bubbles` field of this object."]
14 #[doc = ""]
15 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
16 #[wasm_bindgen(method, getter = "bubbles")]
17 pub fn get_bubbles(this: &PointerEventInit) -> Option<bool>;
18 #[doc = "Change the `bubbles` field of this object."]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
21 #[wasm_bindgen(method, setter = "bubbles")]
22 pub fn set_bubbles(this: &PointerEventInit, val: bool);
23 #[doc = "Get the `cancelable` field of this object."]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
26 #[wasm_bindgen(method, getter = "cancelable")]
27 pub fn get_cancelable(this: &PointerEventInit) -> Option<bool>;
28 #[doc = "Change the `cancelable` field of this object."]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
31 #[wasm_bindgen(method, setter = "cancelable")]
32 pub fn set_cancelable(this: &PointerEventInit, val: bool);
33 #[doc = "Get the `composed` field of this object."]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
36 #[wasm_bindgen(method, getter = "composed")]
37 pub fn get_composed(this: &PointerEventInit) -> Option<bool>;
38 #[doc = "Change the `composed` field of this object."]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
41 #[wasm_bindgen(method, setter = "composed")]
42 pub fn set_composed(this: &PointerEventInit, val: bool);
43 #[doc = "Get the `detail` field of this object."]
44 #[doc = ""]
45 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
46 #[wasm_bindgen(method, getter = "detail")]
47 pub fn get_detail(this: &PointerEventInit) -> Option<i32>;
48 #[doc = "Change the `detail` field of this object."]
49 #[doc = ""]
50 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
51 #[wasm_bindgen(method, setter = "detail")]
52 pub fn set_detail(this: &PointerEventInit, val: i32);
53 #[cfg(feature = "Window")]
54 #[doc = "Get the `view` field of this object."]
55 #[doc = ""]
56 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`, `Window`*"]
57 #[wasm_bindgen(method, getter = "view")]
58 pub fn get_view(this: &PointerEventInit) -> Option<Window>;
59 #[cfg(feature = "Window")]
60 #[doc = "Change the `view` field of this object."]
61 #[doc = ""]
62 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`, `Window`*"]
63 #[wasm_bindgen(method, setter = "view")]
64 pub fn set_view(this: &PointerEventInit, val: Option<&Window>);
65 #[doc = "Get the `altKey` field of this object."]
66 #[doc = ""]
67 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
68 #[wasm_bindgen(method, getter = "altKey")]
69 pub fn get_alt_key(this: &PointerEventInit) -> Option<bool>;
70 #[doc = "Change the `altKey` field of this object."]
71 #[doc = ""]
72 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
73 #[wasm_bindgen(method, setter = "altKey")]
74 pub fn set_alt_key(this: &PointerEventInit, val: bool);
75 #[doc = "Get the `ctrlKey` field of this object."]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
78 #[wasm_bindgen(method, getter = "ctrlKey")]
79 pub fn get_ctrl_key(this: &PointerEventInit) -> Option<bool>;
80 #[doc = "Change the `ctrlKey` field of this object."]
81 #[doc = ""]
82 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
83 #[wasm_bindgen(method, setter = "ctrlKey")]
84 pub fn set_ctrl_key(this: &PointerEventInit, val: bool);
85 #[doc = "Get the `metaKey` field of this object."]
86 #[doc = ""]
87 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
88 #[wasm_bindgen(method, getter = "metaKey")]
89 pub fn get_meta_key(this: &PointerEventInit) -> Option<bool>;
90 #[doc = "Change the `metaKey` field of this object."]
91 #[doc = ""]
92 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
93 #[wasm_bindgen(method, setter = "metaKey")]
94 pub fn set_meta_key(this: &PointerEventInit, val: bool);
95 #[doc = "Get the `modifierAltGraph` field of this object."]
96 #[doc = ""]
97 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
98 #[wasm_bindgen(method, getter = "modifierAltGraph")]
99 pub fn get_modifier_alt_graph(this: &PointerEventInit) -> Option<bool>;
100 #[doc = "Change the `modifierAltGraph` field of this object."]
101 #[doc = ""]
102 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
103 #[wasm_bindgen(method, setter = "modifierAltGraph")]
104 pub fn set_modifier_alt_graph(this: &PointerEventInit, val: bool);
105 #[doc = "Get the `modifierCapsLock` field of this object."]
106 #[doc = ""]
107 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
108 #[wasm_bindgen(method, getter = "modifierCapsLock")]
109 pub fn get_modifier_caps_lock(this: &PointerEventInit) -> Option<bool>;
110 #[doc = "Change the `modifierCapsLock` field of this object."]
111 #[doc = ""]
112 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
113 #[wasm_bindgen(method, setter = "modifierCapsLock")]
114 pub fn set_modifier_caps_lock(this: &PointerEventInit, val: bool);
115 #[doc = "Get the `modifierFn` field of this object."]
116 #[doc = ""]
117 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
118 #[wasm_bindgen(method, getter = "modifierFn")]
119 pub fn get_modifier_fn(this: &PointerEventInit) -> Option<bool>;
120 #[doc = "Change the `modifierFn` field of this object."]
121 #[doc = ""]
122 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
123 #[wasm_bindgen(method, setter = "modifierFn")]
124 pub fn set_modifier_fn(this: &PointerEventInit, val: bool);
125 #[doc = "Get the `modifierFnLock` field of this object."]
126 #[doc = ""]
127 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
128 #[wasm_bindgen(method, getter = "modifierFnLock")]
129 pub fn get_modifier_fn_lock(this: &PointerEventInit) -> Option<bool>;
130 #[doc = "Change the `modifierFnLock` field of this object."]
131 #[doc = ""]
132 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
133 #[wasm_bindgen(method, setter = "modifierFnLock")]
134 pub fn set_modifier_fn_lock(this: &PointerEventInit, val: bool);
135 #[doc = "Get the `modifierNumLock` field of this object."]
136 #[doc = ""]
137 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
138 #[wasm_bindgen(method, getter = "modifierNumLock")]
139 pub fn get_modifier_num_lock(this: &PointerEventInit) -> Option<bool>;
140 #[doc = "Change the `modifierNumLock` field of this object."]
141 #[doc = ""]
142 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
143 #[wasm_bindgen(method, setter = "modifierNumLock")]
144 pub fn set_modifier_num_lock(this: &PointerEventInit, val: bool);
145 #[doc = "Get the `modifierOS` field of this object."]
146 #[doc = ""]
147 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
148 #[wasm_bindgen(method, getter = "modifierOS")]
149 pub fn get_modifier_os(this: &PointerEventInit) -> Option<bool>;
150 #[doc = "Change the `modifierOS` field of this object."]
151 #[doc = ""]
152 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
153 #[wasm_bindgen(method, setter = "modifierOS")]
154 pub fn set_modifier_os(this: &PointerEventInit, val: bool);
155 #[doc = "Get the `modifierScrollLock` field of this object."]
156 #[doc = ""]
157 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
158 #[wasm_bindgen(method, getter = "modifierScrollLock")]
159 pub fn get_modifier_scroll_lock(this: &PointerEventInit) -> Option<bool>;
160 #[doc = "Change the `modifierScrollLock` field of this object."]
161 #[doc = ""]
162 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
163 #[wasm_bindgen(method, setter = "modifierScrollLock")]
164 pub fn set_modifier_scroll_lock(this: &PointerEventInit, val: bool);
165 #[doc = "Get the `modifierSymbol` field of this object."]
166 #[doc = ""]
167 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
168 #[wasm_bindgen(method, getter = "modifierSymbol")]
169 pub fn get_modifier_symbol(this: &PointerEventInit) -> Option<bool>;
170 #[doc = "Change the `modifierSymbol` field of this object."]
171 #[doc = ""]
172 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
173 #[wasm_bindgen(method, setter = "modifierSymbol")]
174 pub fn set_modifier_symbol(this: &PointerEventInit, val: bool);
175 #[doc = "Get the `modifierSymbolLock` field of this object."]
176 #[doc = ""]
177 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
178 #[wasm_bindgen(method, getter = "modifierSymbolLock")]
179 pub fn get_modifier_symbol_lock(this: &PointerEventInit) -> Option<bool>;
180 #[doc = "Change the `modifierSymbolLock` field of this object."]
181 #[doc = ""]
182 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
183 #[wasm_bindgen(method, setter = "modifierSymbolLock")]
184 pub fn set_modifier_symbol_lock(this: &PointerEventInit, val: bool);
185 #[doc = "Get the `shiftKey` field of this object."]
186 #[doc = ""]
187 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
188 #[wasm_bindgen(method, getter = "shiftKey")]
189 pub fn get_shift_key(this: &PointerEventInit) -> Option<bool>;
190 #[doc = "Change the `shiftKey` field of this object."]
191 #[doc = ""]
192 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
193 #[wasm_bindgen(method, setter = "shiftKey")]
194 pub fn set_shift_key(this: &PointerEventInit, val: bool);
195 #[doc = "Get the `button` field of this object."]
196 #[doc = ""]
197 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
198 #[wasm_bindgen(method, getter = "button")]
199 pub fn get_button(this: &PointerEventInit) -> Option<i16>;
200 #[doc = "Change the `button` field of this object."]
201 #[doc = ""]
202 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
203 #[wasm_bindgen(method, setter = "button")]
204 pub fn set_button(this: &PointerEventInit, val: i16);
205 #[doc = "Get the `buttons` field of this object."]
206 #[doc = ""]
207 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
208 #[wasm_bindgen(method, getter = "buttons")]
209 pub fn get_buttons(this: &PointerEventInit) -> Option<u16>;
210 #[doc = "Change the `buttons` field of this object."]
211 #[doc = ""]
212 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
213 #[wasm_bindgen(method, setter = "buttons")]
214 pub fn set_buttons(this: &PointerEventInit, val: u16);
215 #[doc = "Get the `clientX` field of this object."]
216 #[doc = ""]
217 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
218 #[wasm_bindgen(method, getter = "clientX")]
219 pub fn get_client_x(this: &PointerEventInit) -> Option<i32>;
220 #[doc = "Change the `clientX` field of this object."]
221 #[doc = ""]
222 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
223 #[wasm_bindgen(method, setter = "clientX")]
224 pub fn set_client_x(this: &PointerEventInit, val: i32);
225 #[doc = "Get the `clientY` field of this object."]
226 #[doc = ""]
227 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
228 #[wasm_bindgen(method, getter = "clientY")]
229 pub fn get_client_y(this: &PointerEventInit) -> Option<i32>;
230 #[doc = "Change the `clientY` field of this object."]
231 #[doc = ""]
232 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
233 #[wasm_bindgen(method, setter = "clientY")]
234 pub fn set_client_y(this: &PointerEventInit, val: i32);
235 #[doc = "Get the `movementX` field of this object."]
236 #[doc = ""]
237 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
238 #[wasm_bindgen(method, getter = "movementX")]
239 pub fn get_movement_x(this: &PointerEventInit) -> Option<i32>;
240 #[doc = "Change the `movementX` field of this object."]
241 #[doc = ""]
242 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
243 #[wasm_bindgen(method, setter = "movementX")]
244 pub fn set_movement_x(this: &PointerEventInit, val: i32);
245 #[doc = "Get the `movementY` field of this object."]
246 #[doc = ""]
247 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
248 #[wasm_bindgen(method, getter = "movementY")]
249 pub fn get_movement_y(this: &PointerEventInit) -> Option<i32>;
250 #[doc = "Change the `movementY` field of this object."]
251 #[doc = ""]
252 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
253 #[wasm_bindgen(method, setter = "movementY")]
254 pub fn set_movement_y(this: &PointerEventInit, val: i32);
255 #[cfg(feature = "EventTarget")]
256 #[doc = "Get the `relatedTarget` field of this object."]
257 #[doc = ""]
258 #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `PointerEventInit`*"]
259 #[wasm_bindgen(method, getter = "relatedTarget")]
260 pub fn get_related_target(this: &PointerEventInit) -> Option<EventTarget>;
261 #[cfg(feature = "EventTarget")]
262 #[doc = "Change the `relatedTarget` field of this object."]
263 #[doc = ""]
264 #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `PointerEventInit`*"]
265 #[wasm_bindgen(method, setter = "relatedTarget")]
266 pub fn set_related_target(this: &PointerEventInit, val: Option<&EventTarget>);
267 #[doc = "Get the `screenX` field of this object."]
268 #[doc = ""]
269 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
270 #[wasm_bindgen(method, getter = "screenX")]
271 pub fn get_screen_x(this: &PointerEventInit) -> Option<i32>;
272 #[doc = "Change the `screenX` field of this object."]
273 #[doc = ""]
274 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
275 #[wasm_bindgen(method, setter = "screenX")]
276 pub fn set_screen_x(this: &PointerEventInit, val: i32);
277 #[doc = "Get the `screenY` field of this object."]
278 #[doc = ""]
279 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
280 #[wasm_bindgen(method, getter = "screenY")]
281 pub fn get_screen_y(this: &PointerEventInit) -> Option<i32>;
282 #[doc = "Change the `screenY` field of this object."]
283 #[doc = ""]
284 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
285 #[wasm_bindgen(method, setter = "screenY")]
286 pub fn set_screen_y(this: &PointerEventInit, val: i32);
287 #[doc = "Get the `coalescedEvents` field of this object."]
288 #[doc = ""]
289 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
290 #[wasm_bindgen(method, getter = "coalescedEvents")]
291 pub fn get_coalesced_events(this: &PointerEventInit) -> Option<::js_sys::Array>;
292 #[doc = "Change the `coalescedEvents` field of this object."]
293 #[doc = ""]
294 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
295 #[wasm_bindgen(method, setter = "coalescedEvents")]
296 pub fn set_coalesced_events(this: &PointerEventInit, val: &::wasm_bindgen::JsValue);
297 #[doc = "Get the `height` field of this object."]
298 #[doc = ""]
299 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
300 #[wasm_bindgen(method, getter = "height")]
301 pub fn get_height(this: &PointerEventInit) -> Option<i32>;
302 #[doc = "Change the `height` field of this object."]
303 #[doc = ""]
304 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
305 #[wasm_bindgen(method, setter = "height")]
306 pub fn set_height(this: &PointerEventInit, val: i32);
307 #[doc = "Get the `isPrimary` field of this object."]
308 #[doc = ""]
309 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
310 #[wasm_bindgen(method, getter = "isPrimary")]
311 pub fn get_is_primary(this: &PointerEventInit) -> Option<bool>;
312 #[doc = "Change the `isPrimary` field of this object."]
313 #[doc = ""]
314 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
315 #[wasm_bindgen(method, setter = "isPrimary")]
316 pub fn set_is_primary(this: &PointerEventInit, val: bool);
317 #[doc = "Get the `pointerId` field of this object."]
318 #[doc = ""]
319 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
320 #[wasm_bindgen(method, getter = "pointerId")]
321 pub fn get_pointer_id(this: &PointerEventInit) -> Option<i32>;
322 #[doc = "Change the `pointerId` field of this object."]
323 #[doc = ""]
324 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
325 #[wasm_bindgen(method, setter = "pointerId")]
326 pub fn set_pointer_id(this: &PointerEventInit, val: i32);
327 #[doc = "Get the `pointerType` field of this object."]
328 #[doc = ""]
329 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
330 #[wasm_bindgen(method, getter = "pointerType")]
331 pub fn get_pointer_type(this: &PointerEventInit) -> Option<::alloc::string::String>;
332 #[doc = "Change the `pointerType` field of this object."]
333 #[doc = ""]
334 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
335 #[wasm_bindgen(method, setter = "pointerType")]
336 pub fn set_pointer_type(this: &PointerEventInit, val: &str);
337 #[doc = "Get the `pressure` field of this object."]
338 #[doc = ""]
339 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
340 #[wasm_bindgen(method, getter = "pressure")]
341 pub fn get_pressure(this: &PointerEventInit) -> Option<f32>;
342 #[doc = "Change the `pressure` field of this object."]
343 #[doc = ""]
344 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
345 #[wasm_bindgen(method, setter = "pressure")]
346 pub fn set_pressure(this: &PointerEventInit, val: f32);
347 #[doc = "Get the `tangentialPressure` field of this object."]
348 #[doc = ""]
349 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
350 #[wasm_bindgen(method, getter = "tangentialPressure")]
351 pub fn get_tangential_pressure(this: &PointerEventInit) -> Option<f32>;
352 #[doc = "Change the `tangentialPressure` field of this object."]
353 #[doc = ""]
354 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
355 #[wasm_bindgen(method, setter = "tangentialPressure")]
356 pub fn set_tangential_pressure(this: &PointerEventInit, val: f32);
357 #[doc = "Get the `tiltX` field of this object."]
358 #[doc = ""]
359 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
360 #[wasm_bindgen(method, getter = "tiltX")]
361 pub fn get_tilt_x(this: &PointerEventInit) -> Option<i32>;
362 #[doc = "Change the `tiltX` field of this object."]
363 #[doc = ""]
364 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
365 #[wasm_bindgen(method, setter = "tiltX")]
366 pub fn set_tilt_x(this: &PointerEventInit, val: i32);
367 #[doc = "Get the `tiltY` field of this object."]
368 #[doc = ""]
369 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
370 #[wasm_bindgen(method, getter = "tiltY")]
371 pub fn get_tilt_y(this: &PointerEventInit) -> Option<i32>;
372 #[doc = "Change the `tiltY` field of this object."]
373 #[doc = ""]
374 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
375 #[wasm_bindgen(method, setter = "tiltY")]
376 pub fn set_tilt_y(this: &PointerEventInit, val: i32);
377 #[doc = "Get the `twist` field of this object."]
378 #[doc = ""]
379 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
380 #[wasm_bindgen(method, getter = "twist")]
381 pub fn get_twist(this: &PointerEventInit) -> Option<i32>;
382 #[doc = "Change the `twist` field of this object."]
383 #[doc = ""]
384 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
385 #[wasm_bindgen(method, setter = "twist")]
386 pub fn set_twist(this: &PointerEventInit, val: i32);
387 #[doc = "Get the `width` field of this object."]
388 #[doc = ""]
389 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
390 #[wasm_bindgen(method, getter = "width")]
391 pub fn get_width(this: &PointerEventInit) -> Option<i32>;
392 #[doc = "Change the `width` field of this object."]
393 #[doc = ""]
394 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
395 #[wasm_bindgen(method, setter = "width")]
396 pub fn set_width(this: &PointerEventInit, val: i32);
397}
398impl PointerEventInit {
399 #[doc = "Construct a new `PointerEventInit`."]
400 #[doc = ""]
401 #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"]
402 pub fn new() -> Self {
403 #[allow(unused_mut)]
404 let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new());
405 ret
406 }
407 #[deprecated = "Use `set_bubbles()` instead."]
408 pub fn bubbles(&mut self, val: bool) -> &mut Self {
409 self.set_bubbles(val);
410 self
411 }
412 #[deprecated = "Use `set_cancelable()` instead."]
413 pub fn cancelable(&mut self, val: bool) -> &mut Self {
414 self.set_cancelable(val);
415 self
416 }
417 #[deprecated = "Use `set_composed()` instead."]
418 pub fn composed(&mut self, val: bool) -> &mut Self {
419 self.set_composed(val);
420 self
421 }
422 #[deprecated = "Use `set_detail()` instead."]
423 pub fn detail(&mut self, val: i32) -> &mut Self {
424 self.set_detail(val);
425 self
426 }
427 #[cfg(feature = "Window")]
428 #[deprecated = "Use `set_view()` instead."]
429 pub fn view(&mut self, val: Option<&Window>) -> &mut Self {
430 self.set_view(val);
431 self
432 }
433 #[deprecated = "Use `set_alt_key()` instead."]
434 pub fn alt_key(&mut self, val: bool) -> &mut Self {
435 self.set_alt_key(val);
436 self
437 }
438 #[deprecated = "Use `set_ctrl_key()` instead."]
439 pub fn ctrl_key(&mut self, val: bool) -> &mut Self {
440 self.set_ctrl_key(val);
441 self
442 }
443 #[deprecated = "Use `set_meta_key()` instead."]
444 pub fn meta_key(&mut self, val: bool) -> &mut Self {
445 self.set_meta_key(val);
446 self
447 }
448 #[deprecated = "Use `set_modifier_alt_graph()` instead."]
449 pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self {
450 self.set_modifier_alt_graph(val);
451 self
452 }
453 #[deprecated = "Use `set_modifier_caps_lock()` instead."]
454 pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self {
455 self.set_modifier_caps_lock(val);
456 self
457 }
458 #[deprecated = "Use `set_modifier_fn()` instead."]
459 pub fn modifier_fn(&mut self, val: bool) -> &mut Self {
460 self.set_modifier_fn(val);
461 self
462 }
463 #[deprecated = "Use `set_modifier_fn_lock()` instead."]
464 pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self {
465 self.set_modifier_fn_lock(val);
466 self
467 }
468 #[deprecated = "Use `set_modifier_num_lock()` instead."]
469 pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self {
470 self.set_modifier_num_lock(val);
471 self
472 }
473 #[deprecated = "Use `set_modifier_os()` instead."]
474 pub fn modifier_os(&mut self, val: bool) -> &mut Self {
475 self.set_modifier_os(val);
476 self
477 }
478 #[deprecated = "Use `set_modifier_scroll_lock()` instead."]
479 pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self {
480 self.set_modifier_scroll_lock(val);
481 self
482 }
483 #[deprecated = "Use `set_modifier_symbol()` instead."]
484 pub fn modifier_symbol(&mut self, val: bool) -> &mut Self {
485 self.set_modifier_symbol(val);
486 self
487 }
488 #[deprecated = "Use `set_modifier_symbol_lock()` instead."]
489 pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self {
490 self.set_modifier_symbol_lock(val);
491 self
492 }
493 #[deprecated = "Use `set_shift_key()` instead."]
494 pub fn shift_key(&mut self, val: bool) -> &mut Self {
495 self.set_shift_key(val);
496 self
497 }
498 #[deprecated = "Use `set_button()` instead."]
499 pub fn button(&mut self, val: i16) -> &mut Self {
500 self.set_button(val);
501 self
502 }
503 #[deprecated = "Use `set_buttons()` instead."]
504 pub fn buttons(&mut self, val: u16) -> &mut Self {
505 self.set_buttons(val);
506 self
507 }
508 #[deprecated = "Use `set_client_x()` instead."]
509 pub fn client_x(&mut self, val: i32) -> &mut Self {
510 self.set_client_x(val);
511 self
512 }
513 #[deprecated = "Use `set_client_y()` instead."]
514 pub fn client_y(&mut self, val: i32) -> &mut Self {
515 self.set_client_y(val);
516 self
517 }
518 #[deprecated = "Use `set_movement_x()` instead."]
519 pub fn movement_x(&mut self, val: i32) -> &mut Self {
520 self.set_movement_x(val);
521 self
522 }
523 #[deprecated = "Use `set_movement_y()` instead."]
524 pub fn movement_y(&mut self, val: i32) -> &mut Self {
525 self.set_movement_y(val);
526 self
527 }
528 #[cfg(feature = "EventTarget")]
529 #[deprecated = "Use `set_related_target()` instead."]
530 pub fn related_target(&mut self, val: Option<&EventTarget>) -> &mut Self {
531 self.set_related_target(val);
532 self
533 }
534 #[deprecated = "Use `set_screen_x()` instead."]
535 pub fn screen_x(&mut self, val: i32) -> &mut Self {
536 self.set_screen_x(val);
537 self
538 }
539 #[deprecated = "Use `set_screen_y()` instead."]
540 pub fn screen_y(&mut self, val: i32) -> &mut Self {
541 self.set_screen_y(val);
542 self
543 }
544 #[deprecated = "Use `set_coalesced_events()` instead."]
545 pub fn coalesced_events(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self {
546 self.set_coalesced_events(val);
547 self
548 }
549 #[deprecated = "Use `set_height()` instead."]
550 pub fn height(&mut self, val: i32) -> &mut Self {
551 self.set_height(val);
552 self
553 }
554 #[deprecated = "Use `set_is_primary()` instead."]
555 pub fn is_primary(&mut self, val: bool) -> &mut Self {
556 self.set_is_primary(val);
557 self
558 }
559 #[deprecated = "Use `set_pointer_id()` instead."]
560 pub fn pointer_id(&mut self, val: i32) -> &mut Self {
561 self.set_pointer_id(val);
562 self
563 }
564 #[deprecated = "Use `set_pointer_type()` instead."]
565 pub fn pointer_type(&mut self, val: &str) -> &mut Self {
566 self.set_pointer_type(val);
567 self
568 }
569 #[deprecated = "Use `set_pressure()` instead."]
570 pub fn pressure(&mut self, val: f32) -> &mut Self {
571 self.set_pressure(val);
572 self
573 }
574 #[deprecated = "Use `set_tangential_pressure()` instead."]
575 pub fn tangential_pressure(&mut self, val: f32) -> &mut Self {
576 self.set_tangential_pressure(val);
577 self
578 }
579 #[deprecated = "Use `set_tilt_x()` instead."]
580 pub fn tilt_x(&mut self, val: i32) -> &mut Self {
581 self.set_tilt_x(val);
582 self
583 }
584 #[deprecated = "Use `set_tilt_y()` instead."]
585 pub fn tilt_y(&mut self, val: i32) -> &mut Self {
586 self.set_tilt_y(val);
587 self
588 }
589 #[deprecated = "Use `set_twist()` instead."]
590 pub fn twist(&mut self, val: i32) -> &mut Self {
591 self.set_twist(val);
592 self
593 }
594 #[deprecated = "Use `set_width()` instead."]
595 pub fn width(&mut self, val: i32) -> &mut Self {
596 self.set_width(val);
597 self
598 }
599}
600impl Default for PointerEventInit {
601 fn default() -> Self {
602 Self::new()
603 }
604}