web_sys/features/
gen_XrReferenceSpaceEvent.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 = "Event",
10 extends = "::js_sys::Object",
11 js_name = "XRReferenceSpaceEvent",
12 typescript_type = "XRReferenceSpaceEvent"
13 )]
14 #[derive(Debug, Clone, PartialEq, Eq)]
15 #[doc = "The `XrReferenceSpaceEvent` class."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpaceEvent)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpaceEvent`*"]
20 #[doc = ""]
21 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
22 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
23 pub type XrReferenceSpaceEvent;
24 #[cfg(web_sys_unstable_apis)]
25 #[cfg(feature = "XrReferenceSpace")]
26 #[wasm_bindgen(
27 method,
28 getter,
29 js_class = "XRReferenceSpaceEvent",
30 js_name = "referenceSpace"
31 )]
32 #[doc = "Getter for the `referenceSpace` field of this object."]
33 #[doc = ""]
34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpaceEvent/referenceSpace)"]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpace`, `XrReferenceSpaceEvent`*"]
37 #[doc = ""]
38 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
39 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
40 pub fn reference_space(this: &XrReferenceSpaceEvent) -> XrReferenceSpace;
41 #[cfg(web_sys_unstable_apis)]
42 #[cfg(feature = "XrRigidTransform")]
43 #[wasm_bindgen(
44 method,
45 getter,
46 js_class = "XRReferenceSpaceEvent",
47 js_name = "transform"
48 )]
49 #[doc = "Getter for the `transform` field of this object."]
50 #[doc = ""]
51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpaceEvent/transform)"]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpaceEvent`, `XrRigidTransform`*"]
54 #[doc = ""]
55 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
56 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
57 pub fn transform(this: &XrReferenceSpaceEvent) -> Option<XrRigidTransform>;
58 #[cfg(web_sys_unstable_apis)]
59 #[cfg(feature = "XrReferenceSpaceEventInit")]
60 #[wasm_bindgen(catch, constructor, js_class = "XRReferenceSpaceEvent")]
61 #[doc = "The `new XrReferenceSpaceEvent(..)` constructor, creating a new instance of `XrReferenceSpaceEvent`."]
62 #[doc = ""]
63 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRReferenceSpaceEvent/XRReferenceSpaceEvent)"]
64 #[doc = ""]
65 #[doc = "*This API requires the following crate features to be activated: `XrReferenceSpaceEvent`, `XrReferenceSpaceEventInit`*"]
66 #[doc = ""]
67 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
68 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
69 pub fn new(
70 type_: &str,
71 event_init_dict: &XrReferenceSpaceEventInit,
72 ) -> Result<XrReferenceSpaceEvent, JsValue>;
73}