maxcountryman_web_sys/features/
gen_PointerEvent.rs

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