1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
    # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = VRDisplay , typescript_type = "VRDisplay")]
    #[derive(Debug, Clone, PartialEq, Eq)]
    #[doc = "The `VrDisplay` class."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"]
    pub type VrDisplay;
    # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = isConnected)]
    #[doc = "Getter for the `isConnected` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/isConnected)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"]
    pub fn is_connected(this: &VrDisplay) -> bool;
    # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = isPresenting)]
    #[doc = "Getter for the `isPresenting` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/isPresenting)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"]
    pub fn is_presenting(this: &VrDisplay) -> bool;
    #[cfg(feature = "VrDisplayCapabilities")]
    # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = capabilities)]
    #[doc = "Getter for the `capabilities` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/capabilities)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrDisplayCapabilities`*"]
    pub fn capabilities(this: &VrDisplay) -> VrDisplayCapabilities;
    #[cfg(feature = "VrStageParameters")]
    # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = stageParameters)]
    #[doc = "Getter for the `stageParameters` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/stageParameters)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrStageParameters`*"]
    pub fn stage_parameters(this: &VrDisplay) -> Option<VrStageParameters>;
    # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = displayId)]
    #[doc = "Getter for the `displayId` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/displayId)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"]
    pub fn display_id(this: &VrDisplay) -> u32;
    # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = displayName)]
    #[doc = "Getter for the `displayName` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/displayName)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"]
    pub fn display_name(this: &VrDisplay) -> String;
    # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = depthNear)]
    #[doc = "Getter for the `depthNear` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthNear)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"]
    pub fn depth_near(this: &VrDisplay) -> f64;
    # [wasm_bindgen (structural , method , setter , js_class = "VRDisplay" , js_name = depthNear)]
    #[doc = "Setter for the `depthNear` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthNear)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"]
    pub fn set_depth_near(this: &VrDisplay, value: f64);
    # [wasm_bindgen (structural , method , getter , js_class = "VRDisplay" , js_name = depthFar)]
    #[doc = "Getter for the `depthFar` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthFar)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"]
    pub fn depth_far(this: &VrDisplay) -> f64;
    # [wasm_bindgen (structural , method , setter , js_class = "VRDisplay" , js_name = depthFar)]
    #[doc = "Setter for the `depthFar` field of this object."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthFar)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"]
    pub fn set_depth_far(this: &VrDisplay, value: f64);
    # [wasm_bindgen (catch , method , structural , js_class = "VRDisplay" , js_name = cancelAnimationFrame)]
    #[doc = "The `cancelAnimationFrame()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/cancelAnimationFrame)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"]
    pub fn cancel_animation_frame(this: &VrDisplay, handle: i32) -> Result<(), JsValue>;
    # [wasm_bindgen (catch , method , structural , js_class = "VRDisplay" , js_name = exitPresent)]
    #[doc = "The `exitPresent()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/exitPresent)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"]
    pub fn exit_present(this: &VrDisplay) -> Result<::js_sys::Promise, JsValue>;
    #[cfg(all(feature = "VrEye", feature = "VrEyeParameters",))]
    # [wasm_bindgen (method , structural , js_class = "VRDisplay" , js_name = getEyeParameters)]
    #[doc = "The `getEyeParameters()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getEyeParameters)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrEye`, `VrEyeParameters`*"]
    pub fn get_eye_parameters(this: &VrDisplay, which_eye: VrEye) -> VrEyeParameters;
    #[cfg(feature = "VrFrameData")]
    # [wasm_bindgen (method , structural , js_class = "VRDisplay" , js_name = getFrameData)]
    #[doc = "The `getFrameData()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getFrameData)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrFrameData`*"]
    pub fn get_frame_data(this: &VrDisplay, frame_data: &VrFrameData) -> bool;
    # [wasm_bindgen (method , structural , js_class = "VRDisplay" , js_name = getLayers)]
    #[doc = "The `getLayers()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getLayers)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"]
    pub fn get_layers(this: &VrDisplay) -> ::js_sys::Array;
    #[cfg(feature = "VrPose")]
    # [wasm_bindgen (method , structural , js_class = "VRDisplay" , js_name = getPose)]
    #[doc = "The `getPose()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getPose)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrPose`*"]
    pub fn get_pose(this: &VrDisplay) -> VrPose;
    #[cfg(feature = "VrSubmitFrameResult")]
    # [wasm_bindgen (method , structural , js_class = "VRDisplay" , js_name = getSubmitFrameResult)]
    #[doc = "The `getSubmitFrameResult()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getSubmitFrameResult)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrSubmitFrameResult`*"]
    pub fn get_submit_frame_result(this: &VrDisplay, result: &VrSubmitFrameResult) -> bool;
    # [wasm_bindgen (catch , method , structural , js_class = "VRDisplay" , js_name = requestAnimationFrame)]
    #[doc = "The `requestAnimationFrame()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/requestAnimationFrame)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"]
    pub fn request_animation_frame(
        this: &VrDisplay,
        callback: &::js_sys::Function,
    ) -> Result<i32, JsValue>;
    # [wasm_bindgen (catch , method , structural , js_class = "VRDisplay" , js_name = requestPresent)]
    #[doc = "The `requestPresent()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/requestPresent)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"]
    pub fn request_present(
        this: &VrDisplay,
        layers: &::wasm_bindgen::JsValue,
    ) -> Result<::js_sys::Promise, JsValue>;
    # [wasm_bindgen (method , structural , js_class = "VRDisplay" , js_name = resetPose)]
    #[doc = "The `resetPose()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/resetPose)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"]
    pub fn reset_pose(this: &VrDisplay);
    # [wasm_bindgen (method , structural , js_class = "VRDisplay" , js_name = submitFrame)]
    #[doc = "The `submitFrame()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/submitFrame)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"]
    pub fn submit_frame(this: &VrDisplay);
}