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