Skip to main content

web_sys/features/
gen_VrFrameData.rs

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