1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = :: js_sys :: Object , js_name = Touch , typescript_type = "Touch")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `Touch` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `Touch`*"]
13     pub type Touch;
14     # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = identifier)]
15     #[doc = "Getter for the `identifier` field of this object."]
16     #[doc = ""]
17     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/identifier)"]
18     #[doc = ""]
19     #[doc = "*This API requires the following crate features to be activated: `Touch`*"]
identifier(this: &Touch) -> i3220     pub fn identifier(this: &Touch) -> i32;
21     #[cfg(feature = "EventTarget")]
22     # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = target)]
23     #[doc = "Getter for the `target` field of this object."]
24     #[doc = ""]
25     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/target)"]
26     #[doc = ""]
27     #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `Touch`*"]
target(this: &Touch) -> Option<EventTarget>28     pub fn target(this: &Touch) -> Option<EventTarget>;
29     # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = screenX)]
30     #[doc = "Getter for the `screenX` field of this object."]
31     #[doc = ""]
32     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/screenX)"]
33     #[doc = ""]
34     #[doc = "*This API requires the following crate features to be activated: `Touch`*"]
screen_x(this: &Touch) -> i3235     pub fn screen_x(this: &Touch) -> i32;
36     # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = screenY)]
37     #[doc = "Getter for the `screenY` field of this object."]
38     #[doc = ""]
39     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/screenY)"]
40     #[doc = ""]
41     #[doc = "*This API requires the following crate features to be activated: `Touch`*"]
screen_y(this: &Touch) -> i3242     pub fn screen_y(this: &Touch) -> i32;
43     # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = clientX)]
44     #[doc = "Getter for the `clientX` field of this object."]
45     #[doc = ""]
46     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/clientX)"]
47     #[doc = ""]
48     #[doc = "*This API requires the following crate features to be activated: `Touch`*"]
client_x(this: &Touch) -> i3249     pub fn client_x(this: &Touch) -> i32;
50     # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = clientY)]
51     #[doc = "Getter for the `clientY` field of this object."]
52     #[doc = ""]
53     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/clientY)"]
54     #[doc = ""]
55     #[doc = "*This API requires the following crate features to be activated: `Touch`*"]
client_y(this: &Touch) -> i3256     pub fn client_y(this: &Touch) -> i32;
57     # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = pageX)]
58     #[doc = "Getter for the `pageX` field of this object."]
59     #[doc = ""]
60     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/pageX)"]
61     #[doc = ""]
62     #[doc = "*This API requires the following crate features to be activated: `Touch`*"]
page_x(this: &Touch) -> i3263     pub fn page_x(this: &Touch) -> i32;
64     # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = pageY)]
65     #[doc = "Getter for the `pageY` field of this object."]
66     #[doc = ""]
67     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/pageY)"]
68     #[doc = ""]
69     #[doc = "*This API requires the following crate features to be activated: `Touch`*"]
page_y(this: &Touch) -> i3270     pub fn page_y(this: &Touch) -> i32;
71     # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = radiusX)]
72     #[doc = "Getter for the `radiusX` field of this object."]
73     #[doc = ""]
74     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/radiusX)"]
75     #[doc = ""]
76     #[doc = "*This API requires the following crate features to be activated: `Touch`*"]
radius_x(this: &Touch) -> i3277     pub fn radius_x(this: &Touch) -> i32;
78     # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = radiusY)]
79     #[doc = "Getter for the `radiusY` field of this object."]
80     #[doc = ""]
81     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/radiusY)"]
82     #[doc = ""]
83     #[doc = "*This API requires the following crate features to be activated: `Touch`*"]
radius_y(this: &Touch) -> i3284     pub fn radius_y(this: &Touch) -> i32;
85     # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = rotationAngle)]
86     #[doc = "Getter for the `rotationAngle` field of this object."]
87     #[doc = ""]
88     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/rotationAngle)"]
89     #[doc = ""]
90     #[doc = "*This API requires the following crate features to be activated: `Touch`*"]
rotation_angle(this: &Touch) -> f3291     pub fn rotation_angle(this: &Touch) -> f32;
92     # [wasm_bindgen (structural , method , getter , js_class = "Touch" , js_name = force)]
93     #[doc = "Getter for the `force` field of this object."]
94     #[doc = ""]
95     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/force)"]
96     #[doc = ""]
97     #[doc = "*This API requires the following crate features to be activated: `Touch`*"]
force(this: &Touch) -> f3298     pub fn force(this: &Touch) -> f32;
99     #[cfg(feature = "TouchInit")]
100     #[wasm_bindgen(catch, constructor, js_class = "Touch")]
101     #[doc = "The `new Touch(..)` constructor, creating a new instance of `Touch`."]
102     #[doc = ""]
103     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/Touch)"]
104     #[doc = ""]
105     #[doc = "*This API requires the following crate features to be activated: `Touch`, `TouchInit`*"]
new(touch_init_dict: &TouchInit) -> Result<Touch, JsValue>106     pub fn new(touch_init_dict: &TouchInit) -> Result<Touch, JsValue>;
107 }
108