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