maxcountryman_web_sys/features/
gen_XrInputSource.rs

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