web_sys/features/
gen_VrFrameData.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRFrameData , typescript_type = "VRFrameData")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `VrFrameData` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"]
14 pub type VrFrameData;
15 # [wasm_bindgen (structural , method , getter , js_class = "VRFrameData" , js_name = timestamp)]
16 #[doc = "Getter for the `timestamp` field of this object."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/timestamp)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"]
21 pub fn timestamp(this: &VrFrameData) -> f64;
22 # [wasm_bindgen (structural , catch , method , getter , js_class = "VRFrameData" , js_name = leftProjectionMatrix)]
23 #[doc = "Getter for the `leftProjectionMatrix` field of this object."]
24 #[doc = ""]
25 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/leftProjectionMatrix)"]
26 #[doc = ""]
27 #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"]
28 pub fn left_projection_matrix(this: &VrFrameData) -> Result<::alloc::vec::Vec<f32>, JsValue>;
29 # [wasm_bindgen (structural , catch , method , getter , js_class = "VRFrameData" , js_name = leftViewMatrix)]
30 #[doc = "Getter for the `leftViewMatrix` field of this object."]
31 #[doc = ""]
32 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/leftViewMatrix)"]
33 #[doc = ""]
34 #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"]
35 pub fn left_view_matrix(this: &VrFrameData) -> Result<::alloc::vec::Vec<f32>, JsValue>;
36 # [wasm_bindgen (structural , catch , method , getter , js_class = "VRFrameData" , js_name = rightProjectionMatrix)]
37 #[doc = "Getter for the `rightProjectionMatrix` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/rightProjectionMatrix)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"]
42 pub fn right_projection_matrix(this: &VrFrameData) -> Result<::alloc::vec::Vec<f32>, JsValue>;
43 # [wasm_bindgen (structural , catch , method , getter , js_class = "VRFrameData" , js_name = rightViewMatrix)]
44 #[doc = "Getter for the `rightViewMatrix` field of this object."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/rightViewMatrix)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"]
49 pub fn right_view_matrix(this: &VrFrameData) -> Result<::alloc::vec::Vec<f32>, JsValue>;
50 #[cfg(feature = "VrPose")]
51 # [wasm_bindgen (structural , method , getter , js_class = "VRFrameData" , js_name = pose)]
52 #[doc = "Getter for the `pose` field of this object."]
53 #[doc = ""]
54 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/pose)"]
55 #[doc = ""]
56 #[doc = "*This API requires the following crate features to be activated: `VrFrameData`, `VrPose`*"]
57 pub fn pose(this: &VrFrameData) -> VrPose;
58 #[wasm_bindgen(catch, constructor, js_class = "VRFrameData")]
59 #[doc = "The `new VrFrameData(..)` constructor, creating a new instance of `VrFrameData`."]
60 #[doc = ""]
61 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/VRFrameData)"]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"]
64 pub fn new() -> Result<VrFrameData, JsValue>;
65}