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