Skip to main content

web_sys/features/
gen_XrHand.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 = "XRHand",
11        typescript_type = "XRHand"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `XrHand` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRHand)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `XrHand`*"]
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 XrHand;
23    #[cfg(web_sys_unstable_apis)]
24    #[wasm_bindgen(method, getter, js_class = "XRHand", js_name = "size")]
25    #[doc = "Getter for the `size` field of this object."]
26    #[doc = ""]
27    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRHand/size)"]
28    #[doc = ""]
29    #[doc = "*This API requires the following crate features to be activated: `XrHand`*"]
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 size(this: &XrHand) -> u32;
34    #[cfg(web_sys_unstable_apis)]
35    #[cfg(all(feature = "XrHandJoint", feature = "XrJointSpace",))]
36    #[wasm_bindgen(method, js_class = "XRHand")]
37    #[doc = "The `get()` method."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRHand/get)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `XrHand`, `XrHandJoint`, `XrJointSpace`*"]
42    #[doc = ""]
43    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
44    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
45    pub fn get(this: &XrHand, key: XrHandJoint) -> XrJointSpace;
46    #[cfg(web_sys_unstable_apis)]
47    #[cfg(feature = "XrJointSpace")]
48    #[wasm_bindgen(method, js_class = "XRHand")]
49    #[doc = "The `entries()` method."]
50    #[doc = ""]
51    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRHand/entries)"]
52    #[doc = ""]
53    #[doc = "*This API requires the following crate features to be activated: `XrHand`, `XrJointSpace`*"]
54    #[doc = ""]
55    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
56    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
57    pub fn entries(
58        this: &XrHand,
59    ) -> ::js_sys::Iterator<::js_sys::ArrayTuple<(::js_sys::JsString, XrJointSpace)>>;
60    #[cfg(web_sys_unstable_apis)]
61    #[wasm_bindgen(method, js_class = "XRHand")]
62    #[doc = "The `keys()` method."]
63    #[doc = ""]
64    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRHand/keys)"]
65    #[doc = ""]
66    #[doc = "*This API requires the following crate features to be activated: `XrHand`*"]
67    #[doc = ""]
68    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
69    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
70    pub fn keys(this: &XrHand) -> ::js_sys::Iterator<::js_sys::JsString>;
71    #[cfg(web_sys_unstable_apis)]
72    #[cfg(feature = "XrJointSpace")]
73    #[wasm_bindgen(method, js_class = "XRHand")]
74    #[doc = "The `values()` method."]
75    #[doc = ""]
76    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRHand/values)"]
77    #[doc = ""]
78    #[doc = "*This API requires the following crate features to be activated: `XrHand`, `XrJointSpace`*"]
79    #[doc = ""]
80    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
81    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
82    pub fn values(this: &XrHand) -> ::js_sys::Iterator<XrJointSpace>;
83}