1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[cfg(web_sys_unstable_apis)] 5 #[wasm_bindgen] 6 extern "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 = "XrHandedness")] 20 # [wasm_bindgen (structural , method , getter , js_class = "XRInputSource" , js_name = handedness)] 21 #[doc = "Getter for the `handedness` field of this object."] 22 #[doc = ""] 23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/handedness)"] 24 #[doc = ""] 25 #[doc = "*This API requires the following crate features to be activated: `XrHandedness`, `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)*"] handedness(this: &XrInputSource) -> XrHandedness29 pub fn handedness(this: &XrInputSource) -> XrHandedness; 30 #[cfg(web_sys_unstable_apis)] 31 #[cfg(feature = "XrTargetRayMode")] 32 # [wasm_bindgen (structural , method , getter , js_class = "XRInputSource" , js_name = targetRayMode)] 33 #[doc = "Getter for the `targetRayMode` field of this object."] 34 #[doc = ""] 35 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/targetRayMode)"] 36 #[doc = ""] 37 #[doc = "*This API requires the following crate features to be activated: `XrInputSource`, `XrTargetRayMode`*"] 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)*"] target_ray_mode(this: &XrInputSource) -> XrTargetRayMode41 pub fn target_ray_mode(this: &XrInputSource) -> XrTargetRayMode; 42 #[cfg(web_sys_unstable_apis)] 43 #[cfg(feature = "XrSpace")] 44 # [wasm_bindgen (structural , method , getter , js_class = "XRInputSource" , js_name = targetRaySpace)] 45 #[doc = "Getter for the `targetRaySpace` field of this object."] 46 #[doc = ""] 47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/targetRaySpace)"] 48 #[doc = ""] 49 #[doc = "*This API requires the following crate features to be activated: `XrInputSource`, `XrSpace`*"] 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)*"] target_ray_space(this: &XrInputSource) -> XrSpace53 pub fn target_ray_space(this: &XrInputSource) -> XrSpace; 54 #[cfg(web_sys_unstable_apis)] 55 #[cfg(feature = "XrSpace")] 56 # [wasm_bindgen (structural , method , getter , js_class = "XRInputSource" , js_name = gripSpace)] 57 #[doc = "Getter for the `gripSpace` field of this object."] 58 #[doc = ""] 59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/gripSpace)"] 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)*"] grip_space(this: &XrInputSource) -> Option<XrSpace>65 pub fn grip_space(this: &XrInputSource) -> Option<XrSpace>; 66 #[cfg(web_sys_unstable_apis)] 67 # [wasm_bindgen (structural , method , getter , js_class = "XRInputSource" , js_name = profiles)] 68 #[doc = "Getter for the `profiles` field of this object."] 69 #[doc = ""] 70 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRInputSource/profiles)"] 71 #[doc = ""] 72 #[doc = "*This API requires the following crate features to be activated: `XrInputSource`*"] 73 #[doc = ""] 74 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 75 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] profiles(this: &XrInputSource) -> ::js_sys::Array76 pub fn profiles(this: &XrInputSource) -> ::js_sys::Array; 77 } 78