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