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
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = VRMockDisplay , typescript_type = "VRMockDisplay")]
    #[derive(Debug, Clone, PartialEq, Eq)]
    #[doc = "The `VrMockDisplay` class."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"]
    pub type VrMockDisplay;
    #[cfg(feature = "VrEye")]
    # [wasm_bindgen (method , structural , js_class = "VRMockDisplay" , js_name = setEyeParameter)]
    #[doc = "The `setEyeParameter()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/setEyeParameter)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrEye`, `VrMockDisplay`*"]
    pub fn 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,
    );
    # [wasm_bindgen (method , structural , js_class = "VRMockDisplay" , js_name = setEyeResolution)]
    #[doc = "The `setEyeResolution()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/setEyeResolution)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"]
    pub fn set_eye_resolution(this: &VrMockDisplay, a_render_width: u32, a_render_height: u32);
    # [wasm_bindgen (method , structural , js_class = "VRMockDisplay" , js_name = setMountState)]
    #[doc = "The `setMountState()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/setMountState)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"]
    pub fn set_mount_state(this: &VrMockDisplay, is_mounted: bool);
    # [wasm_bindgen (method , structural , js_class = "VRMockDisplay" , js_name = setPose)]
    #[doc = "The `setPose()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/setPose)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"]
    pub fn 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]>,
    );
    # [wasm_bindgen (method , structural , js_class = "VRMockDisplay" , js_name = update)]
    #[doc = "The `update()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/update)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"]
    pub fn update(this: &VrMockDisplay);
}