web_sys/features/
gen_VrDisplayCapabilities.rs1#![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 = "VRDisplayCapabilities",
10 typescript_type = "VRDisplayCapabilities"
11 )]
12 #[derive(Debug, Clone, PartialEq, Eq)]
13 #[doc = "The `VrDisplayCapabilities` class."]
14 #[doc = ""]
15 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities)"]
16 #[doc = ""]
17 #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"]
18 pub type VrDisplayCapabilities;
19 #[wasm_bindgen(
20 method,
21 getter,
22 js_class = "VRDisplayCapabilities",
23 js_name = "hasPosition"
24 )]
25 #[doc = "Getter for the `hasPosition` field of this object."]
26 #[doc = ""]
27 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities/hasPosition)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"]
30 pub fn has_position(this: &VrDisplayCapabilities) -> bool;
31 #[wasm_bindgen(
32 method,
33 getter,
34 js_class = "VRDisplayCapabilities",
35 js_name = "hasOrientation"
36 )]
37 #[doc = "Getter for the `hasOrientation` field of this object."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities/hasOrientation)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"]
42 pub fn has_orientation(this: &VrDisplayCapabilities) -> bool;
43 #[wasm_bindgen(
44 method,
45 getter,
46 js_class = "VRDisplayCapabilities",
47 js_name = "hasExternalDisplay"
48 )]
49 #[doc = "Getter for the `hasExternalDisplay` field of this object."]
50 #[doc = ""]
51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities/hasExternalDisplay)"]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"]
54 pub fn has_external_display(this: &VrDisplayCapabilities) -> bool;
55 #[wasm_bindgen(
56 method,
57 getter,
58 js_class = "VRDisplayCapabilities",
59 js_name = "canPresent"
60 )]
61 #[doc = "Getter for the `canPresent` field of this object."]
62 #[doc = ""]
63 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities/canPresent)"]
64 #[doc = ""]
65 #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"]
66 pub fn can_present(this: &VrDisplayCapabilities) -> bool;
67 #[wasm_bindgen(
68 method,
69 getter,
70 js_class = "VRDisplayCapabilities",
71 js_name = "maxLayers"
72 )]
73 #[doc = "Getter for the `maxLayers` field of this object."]
74 #[doc = ""]
75 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities/maxLayers)"]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"]
78 pub fn max_layers(this: &VrDisplayCapabilities) -> u32;
79}