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