web_sys/features/
gen_XrInputSource.rs1#![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 = "XRInputSource",
11 typescript_type = "XRInputSource"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `XrInputSource` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `XrInputSource`*"]
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 XrInputSource;
23 #[cfg(web_sys_unstable_apis)]
24 #[cfg(feature = "XrHandedness")]
25 #[wasm_bindgen(method, getter, js_class = "XRInputSource", js_name = "handedness")]
26 #[doc = "Getter for the `handedness` field of this object."]
27 #[doc = ""]
28 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/handedness)"]
29 #[doc = ""]
30 #[doc = "*This API requires the following crate features to be activated: `XrHandedness`, `XrInputSource`*"]
31 #[doc = ""]
32 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
33 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
34 pub fn handedness(this: &XrInputSource) -> XrHandedness;
35 #[cfg(web_sys_unstable_apis)]
36 #[cfg(feature = "XrTargetRayMode")]
37 #[wasm_bindgen(method, getter, js_class = "XRInputSource", js_name = "targetRayMode")]
38 #[doc = "Getter for the `targetRayMode` field of this object."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/targetRayMode)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `XrInputSource`, `XrTargetRayMode`*"]
43 #[doc = ""]
44 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
45 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
46 pub fn target_ray_mode(this: &XrInputSource) -> XrTargetRayMode;
47 #[cfg(web_sys_unstable_apis)]
48 #[cfg(feature = "XrSpace")]
49 #[wasm_bindgen(method, getter, js_class = "XRInputSource", js_name = "targetRaySpace")]
50 #[doc = "Getter for the `targetRaySpace` field of this object."]
51 #[doc = ""]
52 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/targetRaySpace)"]
53 #[doc = ""]
54 #[doc = "*This API requires the following crate features to be activated: `XrInputSource`, `XrSpace`*"]
55 #[doc = ""]
56 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
57 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
58 pub fn target_ray_space(this: &XrInputSource) -> XrSpace;
59 #[cfg(web_sys_unstable_apis)]
60 #[cfg(feature = "XrSpace")]
61 #[wasm_bindgen(method, getter, js_class = "XRInputSource", js_name = "gripSpace")]
62 #[doc = "Getter for the `gripSpace` field of this object."]
63 #[doc = ""]
64 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/gripSpace)"]
65 #[doc = ""]
66 #[doc = "*This API requires the following crate features to be activated: `XrInputSource`, `XrSpace`*"]
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 grip_space(this: &XrInputSource) -> Option<XrSpace>;
71 #[cfg(web_sys_unstable_apis)]
72 #[wasm_bindgen(method, getter, js_class = "XRInputSource", js_name = "profiles")]
73 #[doc = "Getter for the `profiles` field of this object."]
74 #[doc = ""]
75 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/profiles)"]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `XrInputSource`*"]
78 #[doc = ""]
79 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
80 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
81 pub fn profiles(this: &XrInputSource) -> ::js_sys::Array<::js_sys::JsString>;
82 #[cfg(web_sys_unstable_apis)]
83 #[cfg(feature = "Gamepad")]
84 #[wasm_bindgen(method, getter, js_class = "XRInputSource", js_name = "gamepad")]
85 #[doc = "Getter for the `gamepad` field of this object."]
86 #[doc = ""]
87 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/gamepad)"]
88 #[doc = ""]
89 #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `XrInputSource`*"]
90 #[doc = ""]
91 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
92 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
93 pub fn gamepad(this: &XrInputSource) -> Option<Gamepad>;
94 #[cfg(web_sys_unstable_apis)]
95 #[cfg(feature = "XrHand")]
96 #[wasm_bindgen(method, getter, js_class = "XRInputSource", js_name = "hand")]
97 #[doc = "Getter for the `hand` field of this object."]
98 #[doc = ""]
99 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/hand)"]
100 #[doc = ""]
101 #[doc = "*This API requires the following crate features to be activated: `XrHand`, `XrInputSource`*"]
102 #[doc = ""]
103 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
104 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
105 pub fn hand(this: &XrInputSource) -> Option<XrHand>;
106}