1#![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 (extends = :: js_sys :: Object , js_name = XRFrame , typescript_type = "XRFrame")]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `XrFrame` class."]
11 #[doc = ""]
12 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame)"]
13 #[doc = ""]
14 #[doc = "*This API requires the following crate features to be activated: `XrFrame`*"]
15 #[doc = ""]
16 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
17 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
18 pub type XrFrame;
19 #[cfg(web_sys_unstable_apis)]
20 #[cfg(feature = "XrSession")]
21 # [wasm_bindgen (structural , method , getter , js_class = "XRFrame" , js_name = session)]
22 #[doc = "Getter for the `session` field of this object."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/session)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrSession`*"]
27 #[doc = ""]
28 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
29 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
30 pub fn session(this: &XrFrame) -> XrSession;
31 #[cfg(web_sys_unstable_apis)]
32 # [wasm_bindgen (structural , method , getter , js_class = "XRFrame" , js_name = predictedDisplayTime)]
33 #[doc = "Getter for the `predictedDisplayTime` field of this object."]
34 #[doc = ""]
35 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/predictedDisplayTime)"]
36 #[doc = ""]
37 #[doc = "*This API requires the following crate features to be activated: `XrFrame`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
41 pub fn predicted_display_time(this: &XrFrame) -> f64;
42 #[cfg(web_sys_unstable_apis)]
43 #[cfg(feature = "XrJointSpace")]
44 # [wasm_bindgen (catch , method , structural , js_class = "XRFrame" , js_name = fillJointRadii)]
45 #[doc = "The `fillJointRadii()` method."]
46 #[doc = ""]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/fillJointRadii)"]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrJointSpace`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
53 pub fn fill_joint_radii_with_f32_slice(
54 this: &XrFrame,
55 joint_spaces: &[XrJointSpace],
56 radii: &mut [f32],
57 ) -> Result<bool, JsValue>;
58 #[cfg(web_sys_unstable_apis)]
59 #[cfg(feature = "XrJointSpace")]
60 # [wasm_bindgen (catch , method , structural , js_class = "XRFrame" , js_name = fillJointRadii)]
61 #[doc = "The `fillJointRadii()` method."]
62 #[doc = ""]
63 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/fillJointRadii)"]
64 #[doc = ""]
65 #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrJointSpace`*"]
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 fill_joint_radii_with_f32_array(
70 this: &XrFrame,
71 joint_spaces: &[XrJointSpace],
72 radii: &::js_sys::Float32Array,
73 ) -> Result<bool, JsValue>;
74 #[cfg(web_sys_unstable_apis)]
75 #[cfg(feature = "XrSpace")]
76 # [wasm_bindgen (catch , method , structural , js_class = "XRFrame" , js_name = fillPoses)]
77 #[doc = "The `fillPoses()` method."]
78 #[doc = ""]
79 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/fillPoses)"]
80 #[doc = ""]
81 #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrSpace`*"]
82 #[doc = ""]
83 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
84 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
85 pub fn fill_poses_with_f32_slice(
86 this: &XrFrame,
87 spaces: &[XrSpace],
88 base_space: &XrSpace,
89 transforms: &mut [f32],
90 ) -> Result<bool, JsValue>;
91 #[cfg(web_sys_unstable_apis)]
92 #[cfg(feature = "XrSpace")]
93 # [wasm_bindgen (catch , method , structural , js_class = "XRFrame" , js_name = fillPoses)]
94 #[doc = "The `fillPoses()` method."]
95 #[doc = ""]
96 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/fillPoses)"]
97 #[doc = ""]
98 #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrSpace`*"]
99 #[doc = ""]
100 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
101 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
102 pub fn fill_poses_with_f32_array(
103 this: &XrFrame,
104 spaces: &[XrSpace],
105 base_space: &XrSpace,
106 transforms: &::js_sys::Float32Array,
107 ) -> Result<bool, JsValue>;
108 #[cfg(web_sys_unstable_apis)]
109 #[cfg(all(feature = "XrJointPose", feature = "XrJointSpace", feature = "XrSpace",))]
110 # [wasm_bindgen (method , structural , js_class = "XRFrame" , js_name = getJointPose)]
111 #[doc = "The `getJointPose()` method."]
112 #[doc = ""]
113 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/getJointPose)"]
114 #[doc = ""]
115 #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrJointPose`, `XrJointSpace`, `XrSpace`*"]
116 #[doc = ""]
117 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
118 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
119 pub fn get_joint_pose(
120 this: &XrFrame,
121 joint: &XrJointSpace,
122 base_space: &XrSpace,
123 ) -> Option<XrJointPose>;
124 #[cfg(web_sys_unstable_apis)]
125 #[cfg(all(feature = "XrPose", feature = "XrSpace",))]
126 # [wasm_bindgen (method , structural , js_class = "XRFrame" , js_name = getPose)]
127 #[doc = "The `getPose()` method."]
128 #[doc = ""]
129 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/getPose)"]
130 #[doc = ""]
131 #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrPose`, `XrSpace`*"]
132 #[doc = ""]
133 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
134 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
135 pub fn get_pose(this: &XrFrame, space: &XrSpace, base_space: &XrSpace) -> Option<XrPose>;
136 #[cfg(web_sys_unstable_apis)]
137 #[cfg(all(feature = "XrReferenceSpace", feature = "XrViewerPose",))]
138 # [wasm_bindgen (method , structural , js_class = "XRFrame" , js_name = getViewerPose)]
139 #[doc = "The `getViewerPose()` method."]
140 #[doc = ""]
141 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/getViewerPose)"]
142 #[doc = ""]
143 #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrReferenceSpace`, `XrViewerPose`*"]
144 #[doc = ""]
145 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
146 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
147 pub fn get_viewer_pose(
148 this: &XrFrame,
149 reference_space: &XrReferenceSpace,
150 ) -> Option<XrViewerPose>;
151}