Skip to main content

web_sys/features/
gen_XrView.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8    #[wasm_bindgen(
9        extends = "::js_sys::Object",
10        js_name = "XRView",
11        typescript_type = "XRView"
12    )]
13    #[derive(Debug, Clone, PartialEq, Eq)]
14    #[doc = "The `XrView` class."]
15    #[doc = ""]
16    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRView)"]
17    #[doc = ""]
18    #[doc = "*This API requires the following crate features to be activated: `XrView`*"]
19    #[doc = ""]
20    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
21    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
22    pub type XrView;
23    #[cfg(web_sys_unstable_apis)]
24    #[cfg(feature = "XrEye")]
25    #[wasm_bindgen(method, getter, js_class = "XRView", js_name = "eye")]
26    #[doc = "Getter for the `eye` field of this object."]
27    #[doc = ""]
28    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRView/eye)"]
29    #[doc = ""]
30    #[doc = "*This API requires the following crate features to be activated: `XrEye`, `XrView`*"]
31    #[doc = ""]
32    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
33    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
34    pub fn eye(this: &XrView) -> XrEye;
35    #[cfg(web_sys_unstable_apis)]
36    #[wasm_bindgen(method, getter, js_class = "XRView", js_name = "projectionMatrix")]
37    #[doc = "Getter for the `projectionMatrix` field of this object."]
38    #[doc = ""]
39    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRView/projectionMatrix)"]
40    #[doc = ""]
41    #[doc = "*This API requires the following crate features to be activated: `XrView`*"]
42    #[doc = ""]
43    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
44    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
45    pub fn projection_matrix(this: &XrView) -> ::alloc::vec::Vec<f32>;
46    #[cfg(web_sys_unstable_apis)]
47    #[cfg(feature = "XrRigidTransform")]
48    #[wasm_bindgen(method, getter, js_class = "XRView", js_name = "transform")]
49    #[doc = "Getter for the `transform` field of this object."]
50    #[doc = ""]
51    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRView/transform)"]
52    #[doc = ""]
53    #[doc = "*This API requires the following crate features to be activated: `XrRigidTransform`, `XrView`*"]
54    #[doc = ""]
55    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
56    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
57    pub fn transform(this: &XrView) -> XrRigidTransform;
58    #[cfg(web_sys_unstable_apis)]
59    #[wasm_bindgen(
60        method,
61        getter,
62        js_class = "XRView",
63        js_name = "recommendedViewportScale"
64    )]
65    #[doc = "Getter for the `recommendedViewportScale` field of this object."]
66    #[doc = ""]
67    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRView/recommendedViewportScale)"]
68    #[doc = ""]
69    #[doc = "*This API requires the following crate features to be activated: `XrView`*"]
70    #[doc = ""]
71    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
72    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
73    pub fn recommended_viewport_scale(this: &XrView) -> Option<f64>;
74    #[cfg(web_sys_unstable_apis)]
75    #[wasm_bindgen(method, js_class = "XRView", js_name = "requestViewportScale")]
76    #[doc = "The `requestViewportScale()` method."]
77    #[doc = ""]
78    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRView/requestViewportScale)"]
79    #[doc = ""]
80    #[doc = "*This API requires the following crate features to be activated: `XrView`*"]
81    #[doc = ""]
82    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
83    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
84    pub fn request_viewport_scale(this: &XrView, scale: Option<f64>);
85}