1 | #![allow (unused_imports)] |
2 | #![allow (clippy::all)] |
3 | use super::*; |
4 | use wasm_bindgen::prelude::*; |
5 | #[wasm_bindgen ] |
6 | extern "C" { |
7 | # [wasm_bindgen (extends = MouseEvent , extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = PointerEvent , typescript_type = "PointerEvent" )] |
8 | #[derive (Debug, Clone, PartialEq, Eq)] |
9 | #[doc = "The `PointerEvent` class." ] |
10 | #[doc = "" ] |
11 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent)" ] |
12 | #[doc = "" ] |
13 | #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*" ] |
14 | pub type PointerEvent; |
15 | # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = pointerId)] |
16 | #[doc = "Getter for the `pointerId` field of this object." ] |
17 | #[doc = "" ] |
18 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pointerId)" ] |
19 | #[doc = "" ] |
20 | #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*" ] |
21 | pub fn pointer_id(this: &PointerEvent) -> i32; |
22 | # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = width)] |
23 | #[doc = "Getter for the `width` field of this object." ] |
24 | #[doc = "" ] |
25 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/width)" ] |
26 | #[doc = "" ] |
27 | #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*" ] |
28 | pub fn width(this: &PointerEvent) -> i32; |
29 | # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = height)] |
30 | #[doc = "Getter for the `height` field of this object." ] |
31 | #[doc = "" ] |
32 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/height)" ] |
33 | #[doc = "" ] |
34 | #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*" ] |
35 | pub fn height(this: &PointerEvent) -> i32; |
36 | # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = pressure)] |
37 | #[doc = "Getter for the `pressure` field of this object." ] |
38 | #[doc = "" ] |
39 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pressure)" ] |
40 | #[doc = "" ] |
41 | #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*" ] |
42 | pub fn pressure(this: &PointerEvent) -> f32; |
43 | # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = tangentialPressure)] |
44 | #[doc = "Getter for the `tangentialPressure` field of this object." ] |
45 | #[doc = "" ] |
46 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/tangentialPressure)" ] |
47 | #[doc = "" ] |
48 | #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*" ] |
49 | pub fn tangential_pressure(this: &PointerEvent) -> f32; |
50 | # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = tiltX)] |
51 | #[doc = "Getter for the `tiltX` field of this object." ] |
52 | #[doc = "" ] |
53 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/tiltX)" ] |
54 | #[doc = "" ] |
55 | #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*" ] |
56 | pub fn tilt_x(this: &PointerEvent) -> i32; |
57 | # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = tiltY)] |
58 | #[doc = "Getter for the `tiltY` field of this object." ] |
59 | #[doc = "" ] |
60 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/tiltY)" ] |
61 | #[doc = "" ] |
62 | #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*" ] |
63 | pub fn tilt_y(this: &PointerEvent) -> i32; |
64 | # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = twist)] |
65 | #[doc = "Getter for the `twist` field of this object." ] |
66 | #[doc = "" ] |
67 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/twist)" ] |
68 | #[doc = "" ] |
69 | #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*" ] |
70 | pub fn twist(this: &PointerEvent) -> i32; |
71 | # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = pointerType)] |
72 | #[doc = "Getter for the `pointerType` field of this object." ] |
73 | #[doc = "" ] |
74 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pointerType)" ] |
75 | #[doc = "" ] |
76 | #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*" ] |
77 | pub fn pointer_type(this: &PointerEvent) -> String; |
78 | # [wasm_bindgen (structural , method , getter , js_class = "PointerEvent" , js_name = isPrimary)] |
79 | #[doc = "Getter for the `isPrimary` field of this object." ] |
80 | #[doc = "" ] |
81 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/isPrimary)" ] |
82 | #[doc = "" ] |
83 | #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*" ] |
84 | pub fn is_primary(this: &PointerEvent) -> bool; |
85 | #[wasm_bindgen (catch, constructor, js_class = "PointerEvent" )] |
86 | #[doc = "The `new PointerEvent(..)` constructor, creating a new instance of `PointerEvent`." ] |
87 | #[doc = "" ] |
88 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/PointerEvent)" ] |
89 | #[doc = "" ] |
90 | #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*" ] |
91 | pub fn new(type_: &str) -> Result<PointerEvent, JsValue>; |
92 | #[cfg (feature = "PointerEventInit" )] |
93 | #[wasm_bindgen (catch, constructor, js_class = "PointerEvent" )] |
94 | #[doc = "The `new PointerEvent(..)` constructor, creating a new instance of `PointerEvent`." ] |
95 | #[doc = "" ] |
96 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/PointerEvent)" ] |
97 | #[doc = "" ] |
98 | #[doc = "*This API requires the following crate features to be activated: `PointerEvent`, `PointerEventInit`*" ] |
99 | pub fn new_with_event_init_dict( |
100 | type_: &str, |
101 | event_init_dict: &PointerEventInit, |
102 | ) -> Result<PointerEvent, JsValue>; |
103 | # [wasm_bindgen (method , structural , js_class = "PointerEvent" , js_name = getCoalescedEvents)] |
104 | #[doc = "The `getCoalescedEvents()` method." ] |
105 | #[doc = "" ] |
106 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/getCoalescedEvents)" ] |
107 | #[doc = "" ] |
108 | #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*" ] |
109 | pub fn get_coalesced_events(this: &PointerEvent) -> ::js_sys::Array; |
110 | } |
111 | |