web_sys/features/
gen_XrReferenceSpace.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 = "XrSpace",
10 extends = "EventTarget",
11 extends = "::js_sys::Object",
12 js_name = "XRReferenceSpace",
13 typescript_type = "XRReferenceSpace"
14 )]
15 #[derive(Debug, Clone, PartialEq, Eq)]
16 #[doc = "The `XrReferenceSpace` class."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpace)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpace`*"]
21 #[doc = ""]
22 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
23 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
24 pub type XrReferenceSpace;
25 #[cfg(web_sys_unstable_apis)]
26 #[wasm_bindgen(method, getter, js_class = "XRReferenceSpace", js_name = "onreset")]
27 #[doc = "Getter for the `onreset` field of this object."]
28 #[doc = ""]
29 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpace/onreset)"]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpace`*"]
32 #[doc = ""]
33 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
34 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
35 pub fn onreset(this: &XrReferenceSpace) -> Option<::js_sys::Function>;
36 #[cfg(web_sys_unstable_apis)]
37 #[wasm_bindgen(method, setter, js_class = "XRReferenceSpace", js_name = "onreset")]
38 #[doc = "Setter for the `onreset` field of this object."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpace/onreset)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpace`*"]
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 set_onreset(this: &XrReferenceSpace, value: Option<&::js_sys::Function>);
47 #[cfg(web_sys_unstable_apis)]
48 #[cfg(feature = "XrRigidTransform")]
49 #[wasm_bindgen(
50 method,
51 js_class = "XRReferenceSpace",
52 js_name = "getOffsetReferenceSpace"
53 )]
54 #[doc = "The `getOffsetReferenceSpace()` method."]
55 #[doc = ""]
56 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpace/getOffsetReferenceSpace)"]
57 #[doc = ""]
58 #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpace`, `XrRigidTransform`*"]
59 #[doc = ""]
60 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
61 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
62 pub fn get_offset_reference_space(
63 this: &XrReferenceSpace,
64 origin_offset: &XrRigidTransform,
65 ) -> XrReferenceSpace;
66}