Skip to main content

web_sys/features/
gen_GamepadTouch.rs

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(
9        extends = "::js_sys::Object",
10        js_name = "GamepadTouch",
11        typescript_type = "GamepadTouch"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `GamepadTouch` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadTouch)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `GamepadTouch`*"]
19    #[doc = ""]
20    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
21    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
22    pub type GamepadTouch;
23    #[cfg(web_sys_unstable_apis)]
24    #[wasm_bindgen(method, getter, js_class = "GamepadTouch", js_name = "touchId")]
25    #[doc = "Getter for the `touchId` field of this object."]
26    #[doc = ""]
27    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadTouch/touchId)"]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `GamepadTouch`*"]
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    pub fn touch_id(this: &GamepadTouch) -> u32;
34    #[cfg(web_sys_unstable_apis)]
35    #[wasm_bindgen(method, getter, js_class = "GamepadTouch", js_name = "surfaceId")]
36    #[doc = "Getter for the `surfaceId` field of this object."]
37    #[doc = ""]
38    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadTouch/surfaceId)"]
39    #[doc = ""]
40    #[doc = "*This API requires the following crate features to be activated: `GamepadTouch`*"]
41    #[doc = ""]
42    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
43    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
44    pub fn surface_id(this: &GamepadTouch) -> u8;
45    #[cfg(web_sys_unstable_apis)]
46    #[wasm_bindgen(method, getter, js_class = "GamepadTouch", js_name = "position")]
47    #[doc = "Getter for the `position` field of this object."]
48    #[doc = ""]
49    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadTouch/position)"]
50    #[doc = ""]
51    #[doc = "*This API requires the following crate features to be activated: `GamepadTouch`*"]
52    #[doc = ""]
53    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
54    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
55    pub fn position(this: &GamepadTouch) -> ::alloc::vec::Vec<f32>;
56    #[cfg(web_sys_unstable_apis)]
57    #[wasm_bindgen(
58        method,
59        getter,
60        js_class = "GamepadTouch",
61        js_name = "surfaceDimensions"
62    )]
63    #[doc = "Getter for the `surfaceDimensions` field of this object."]
64    #[doc = ""]
65    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadTouch/surfaceDimensions)"]
66    #[doc = ""]
67    #[doc = "*This API requires the following crate features to be activated: `GamepadTouch`*"]
68    #[doc = ""]
69    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
70    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
71    pub fn surface_dimensions(this: &GamepadTouch) -> Option<::alloc::vec::Vec<u32>>;
72}