Skip to main content

web_sys/features/
gen_VrEyeParameters.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 = "VREyeParameters",
10        typescript_type = "VREyeParameters"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `VrEyeParameters` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VREyeParameters)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `VrEyeParameters`*"]
18    pub type VrEyeParameters;
19    #[wasm_bindgen(
20        catch,
21        method,
22        getter,
23        js_class = "VREyeParameters",
24        js_name = "offset"
25    )]
26    #[doc = "Getter for the `offset` field of this object."]
27    #[doc = ""]
28    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VREyeParameters/offset)"]
29    #[doc = ""]
30    #[doc = "*This API requires the following crate features to be activated: `VrEyeParameters`*"]
31    pub fn offset(this: &VrEyeParameters) -> Result<::alloc::vec::Vec<f32>, JsValue>;
32    #[cfg(feature = "VrFieldOfView")]
33    #[wasm_bindgen(method, getter, js_class = "VREyeParameters", js_name = "fieldOfView")]
34    #[doc = "Getter for the `fieldOfView` field of this object."]
35    #[doc = ""]
36    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VREyeParameters/fieldOfView)"]
37    #[doc = ""]
38    #[doc = "*This API requires the following crate features to be activated: `VrEyeParameters`, `VrFieldOfView`*"]
39    pub fn field_of_view(this: &VrEyeParameters) -> VrFieldOfView;
40    #[wasm_bindgen(method, getter, js_class = "VREyeParameters", js_name = "renderWidth")]
41    #[doc = "Getter for the `renderWidth` field of this object."]
42    #[doc = ""]
43    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VREyeParameters/renderWidth)"]
44    #[doc = ""]
45    #[doc = "*This API requires the following crate features to be activated: `VrEyeParameters`*"]
46    pub fn render_width(this: &VrEyeParameters) -> u32;
47    #[wasm_bindgen(method, getter, js_class = "VREyeParameters", js_name = "renderHeight")]
48    #[doc = "Getter for the `renderHeight` field of this object."]
49    #[doc = ""]
50    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VREyeParameters/renderHeight)"]
51    #[doc = ""]
52    #[doc = "*This API requires the following crate features to be activated: `VrEyeParameters`*"]
53    pub fn render_height(this: &VrEyeParameters) -> u32;
54}