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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
41 pub fn predicted_display_time(this: &XrFrame) -> f64;
42 #[cfg(web_sys_unstable_apis)]
43 # [wasm_bindgen (catch , method , structural , js_class = "XRFrame" , js_name = fillJointRadii)]
44 #[doc = "The `fillJointRadii()` method."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/fillJointRadii)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `XrFrame`*"]
49 #[doc = ""]
50 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
51 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
52 pub fn fill_joint_radii_with_f32_slice(
53 this: &XrFrame,
54 joint_spaces: &::wasm_bindgen::JsValue,
55 radii: &mut [f32],
56 ) -> Result<bool, JsValue>;
57 #[cfg(web_sys_unstable_apis)]
58 # [wasm_bindgen (catch , method , structural , js_class = "XRFrame" , js_name = fillJointRadii)]
59 #[doc = "The `fillJointRadii()` method."]
60 #[doc = ""]
61 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/fillJointRadii)"]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `XrFrame`*"]
64 #[doc = ""]
65 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
66 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
67 pub fn fill_joint_radii_with_f32_array(
68 this: &XrFrame,
69 joint_spaces: &::wasm_bindgen::JsValue,
70 radii: &::js_sys::Float32Array,
71 ) -> Result<bool, JsValue>;
72 #[cfg(web_sys_unstable_apis)]
73 #[cfg(feature = "XrSpace")]
74 # [wasm_bindgen (catch , method , structural , js_class = "XRFrame" , js_name = fillPoses)]
75 #[doc = "The `fillPoses()` method."]
76 #[doc = ""]
77 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/fillPoses)"]
78 #[doc = ""]
79 #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrSpace`*"]
80 #[doc = ""]
81 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
82 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
83 pub fn fill_poses_with_f32_slice(
84 this: &XrFrame,
85 spaces: &::wasm_bindgen::JsValue,
86 base_space: &XrSpace,
87 transforms: &mut [f32],
88 ) -> Result<bool, JsValue>;
89 #[cfg(web_sys_unstable_apis)]
90 #[cfg(feature = "XrSpace")]
91 # [wasm_bindgen (catch , method , structural , js_class = "XRFrame" , js_name = fillPoses)]
92 #[doc = "The `fillPoses()` method."]
93 #[doc = ""]
94 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/fillPoses)"]
95 #[doc = ""]
96 #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrSpace`*"]
97 #[doc = ""]
98 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
99 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
100 pub fn fill_poses_with_f32_array(
101 this: &XrFrame,
102 spaces: &::wasm_bindgen::JsValue,
103 base_space: &XrSpace,
104 transforms: &::js_sys::Float32Array,
105 ) -> Result<bool, JsValue>;
106 #[cfg(web_sys_unstable_apis)]
107 #[cfg(all(feature = "XrJointPose", feature = "XrJointSpace", feature = "XrSpace",))]
108 # [wasm_bindgen (method , structural , js_class = "XRFrame" , js_name = getJointPose)]
109 #[doc = "The `getJointPose()` method."]
110 #[doc = ""]
111 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/getJointPose)"]
112 #[doc = ""]
113 #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrJointPose`, `XrJointSpace`, `XrSpace`*"]
114 #[doc = ""]
115 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
116 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
117 pub fn get_joint_pose(
118 this: &XrFrame,
119 joint: &XrJointSpace,
120 base_space: &XrSpace,
121 ) -> Option<XrJointPose>;
122 #[cfg(web_sys_unstable_apis)]
123 #[cfg(all(feature = "XrPose", feature = "XrSpace",))]
124 # [wasm_bindgen (method , structural , js_class = "XRFrame" , js_name = getPose)]
125 #[doc = "The `getPose()` method."]
126 #[doc = ""]
127 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/getPose)"]
128 #[doc = ""]
129 #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrPose`, `XrSpace`*"]
130 #[doc = ""]
131 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
132 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
133 pub fn get_pose(this: &XrFrame, space: &XrSpace, base_space: &XrSpace) -> Option<XrPose>;
134 #[cfg(web_sys_unstable_apis)]
135 #[cfg(all(feature = "XrReferenceSpace", feature = "XrViewerPose",))]
136 # [wasm_bindgen (method , structural , js_class = "XRFrame" , js_name = getViewerPose)]
137 #[doc = "The `getViewerPose()` method."]
138 #[doc = ""]
139 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRFrame/getViewerPose)"]
140 #[doc = ""]
141 #[doc = "*This API requires the following crate features to be activated: `XrFrame`, `XrReferenceSpace`, `XrViewerPose`*"]
142 #[doc = ""]
143 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
144 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
145 pub fn get_viewer_pose(
146 this: &XrFrame,
147 reference_space: &XrReferenceSpace,
148 ) -> Option<XrViewerPose>;
149}