1 #![allow(unused_imports)]
2 use super::*;
3 use wasm_bindgen::prelude::*;
4 #[wasm_bindgen]
5 extern "C" {
6     # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRMockDisplay , typescript_type = "VRMockDisplay")]
7     #[derive(Debug, Clone, PartialEq, Eq)]
8     #[doc = "The `VrMockDisplay` class."]
9     #[doc = ""]
10     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay)"]
11     #[doc = ""]
12     #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"]
13     pub type VrMockDisplay;
14     #[cfg(feature = "VrEye")]
15     # [wasm_bindgen (method , structural , js_class = "VRMockDisplay" , js_name = setEyeParameter)]
16     #[doc = "The `setEyeParameter()` method."]
17     #[doc = ""]
18     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/setEyeParameter)"]
19     #[doc = ""]
20     #[doc = "*This API requires the following crate features to be activated: `VrEye`, `VrMockDisplay`*"]
set_eye_parameter( this: &VrMockDisplay, eye: VrEye, offset_x: f64, offset_y: f64, offset_z: f64, up_degree: f64, right_degree: f64, down_degree: f64, left_degree: f64, )21     pub fn set_eye_parameter(
22         this: &VrMockDisplay,
23         eye: VrEye,
24         offset_x: f64,
25         offset_y: f64,
26         offset_z: f64,
27         up_degree: f64,
28         right_degree: f64,
29         down_degree: f64,
30         left_degree: f64,
31     );
32     # [wasm_bindgen (method , structural , js_class = "VRMockDisplay" , js_name = setEyeResolution)]
33     #[doc = "The `setEyeResolution()` method."]
34     #[doc = ""]
35     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/setEyeResolution)"]
36     #[doc = ""]
37     #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"]
set_eye_resolution(this: &VrMockDisplay, a_render_width: u32, a_render_height: u32)38     pub fn set_eye_resolution(this: &VrMockDisplay, a_render_width: u32, a_render_height: u32);
39     # [wasm_bindgen (method , structural , js_class = "VRMockDisplay" , js_name = setMountState)]
40     #[doc = "The `setMountState()` method."]
41     #[doc = ""]
42     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/setMountState)"]
43     #[doc = ""]
44     #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"]
set_mount_state(this: &VrMockDisplay, is_mounted: bool)45     pub fn set_mount_state(this: &VrMockDisplay, is_mounted: bool);
46     # [wasm_bindgen (method , structural , js_class = "VRMockDisplay" , js_name = setPose)]
47     #[doc = "The `setPose()` method."]
48     #[doc = ""]
49     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/setPose)"]
50     #[doc = ""]
51     #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"]
set_pose( this: &VrMockDisplay, position: Option<&mut [f32]>, linear_velocity: Option<&mut [f32]>, linear_acceleration: Option<&mut [f32]>, orientation: Option<&mut [f32]>, angular_velocity: Option<&mut [f32]>, angular_acceleration: Option<&mut [f32]>, )52     pub fn set_pose(
53         this: &VrMockDisplay,
54         position: Option<&mut [f32]>,
55         linear_velocity: Option<&mut [f32]>,
56         linear_acceleration: Option<&mut [f32]>,
57         orientation: Option<&mut [f32]>,
58         angular_velocity: Option<&mut [f32]>,
59         angular_acceleration: Option<&mut [f32]>,
60     );
61     # [wasm_bindgen (method , structural , js_class = "VRMockDisplay" , js_name = update)]
62     #[doc = "The `update()` method."]
63     #[doc = ""]
64     #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/update)"]
65     #[doc = ""]
66     #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"]
update(this: &VrMockDisplay)67     pub fn update(this: &VrMockDisplay);
68 }
69