Skip to main content

web_sys/features/
gen_VrSubmitFrameResult.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 = "VRSubmitFrameResult",
10        typescript_type = "VRSubmitFrameResult"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `VrSubmitFrameResult` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRSubmitFrameResult)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `VrSubmitFrameResult`*"]
18    pub type VrSubmitFrameResult;
19    #[wasm_bindgen(method, getter, js_class = "VRSubmitFrameResult", js_name = "frameNum")]
20    #[doc = "Getter for the `frameNum` field of this object."]
21    #[doc = ""]
22    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRSubmitFrameResult/frameNum)"]
23    #[doc = ""]
24    #[doc = "*This API requires the following crate features to be activated: `VrSubmitFrameResult`*"]
25    pub fn frame_num(this: &VrSubmitFrameResult) -> u32;
26    #[wasm_bindgen(
27        method,
28        getter,
29        js_class = "VRSubmitFrameResult",
30        js_name = "base64Image"
31    )]
32    #[doc = "Getter for the `base64Image` field of this object."]
33    #[doc = ""]
34    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRSubmitFrameResult/base64Image)"]
35    #[doc = ""]
36    #[doc = "*This API requires the following crate features to be activated: `VrSubmitFrameResult`*"]
37    pub fn base64_image(this: &VrSubmitFrameResult) -> Option<::alloc::string::String>;
38    #[wasm_bindgen(catch, constructor, js_class = "VRSubmitFrameResult")]
39    #[doc = "The `new VrSubmitFrameResult(..)` constructor, creating a new instance of `VrSubmitFrameResult`."]
40    #[doc = ""]
41    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRSubmitFrameResult/VRSubmitFrameResult)"]
42    #[doc = ""]
43    #[doc = "*This API requires the following crate features to be activated: `VrSubmitFrameResult`*"]
44    pub fn new() -> Result<VrSubmitFrameResult, JsValue>;
45}