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
|
#![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 = Screen , typescript_type = "Screen")]
#[derive(Debug, Clone, PartialEq, Eq)]
#[doc = "The `Screen` class."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Screen`*"]
pub type Screen;
# [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = availWidth)]
#[doc = "Getter for the `availWidth` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/availWidth)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Screen`*"]
pub fn avail_width(this: &Screen) -> Result<i32, JsValue>;
# [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = availHeight)]
#[doc = "Getter for the `availHeight` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/availHeight)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Screen`*"]
pub fn avail_height(this: &Screen) -> Result<i32, JsValue>;
# [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = width)]
#[doc = "Getter for the `width` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/width)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Screen`*"]
pub fn width(this: &Screen) -> Result<i32, JsValue>;
# [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = height)]
#[doc = "Getter for the `height` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/height)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Screen`*"]
pub fn height(this: &Screen) -> Result<i32, JsValue>;
# [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = colorDepth)]
#[doc = "Getter for the `colorDepth` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/colorDepth)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Screen`*"]
pub fn color_depth(this: &Screen) -> Result<i32, JsValue>;
# [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = pixelDepth)]
#[doc = "Getter for the `pixelDepth` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/pixelDepth)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Screen`*"]
pub fn pixel_depth(this: &Screen) -> Result<i32, JsValue>;
# [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = top)]
#[doc = "Getter for the `top` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/top)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Screen`*"]
pub fn top(this: &Screen) -> Result<i32, JsValue>;
# [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = left)]
#[doc = "Getter for the `left` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/left)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Screen`*"]
pub fn left(this: &Screen) -> Result<i32, JsValue>;
# [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = availTop)]
#[doc = "Getter for the `availTop` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/availTop)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Screen`*"]
pub fn avail_top(this: &Screen) -> Result<i32, JsValue>;
# [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = availLeft)]
#[doc = "Getter for the `availLeft` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/availLeft)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Screen`*"]
pub fn avail_left(this: &Screen) -> Result<i32, JsValue>;
#[cfg(feature = "ScreenOrientation")]
# [wasm_bindgen (structural , method , getter , js_class = "Screen" , js_name = orientation)]
#[doc = "Getter for the `orientation` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Screen`, `ScreenOrientation`*"]
pub fn orientation(this: &Screen) -> ScreenOrientation;
#[cfg(feature = "ScreenColorGamut")]
# [wasm_bindgen (structural , method , getter , js_class = "Screen" , js_name = colorGamut)]
#[doc = "Getter for the `colorGamut` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/colorGamut)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Screen`, `ScreenColorGamut`*"]
pub fn color_gamut(this: &Screen) -> ScreenColorGamut;
#[cfg(feature = "ScreenLuminance")]
# [wasm_bindgen (structural , method , getter , js_class = "Screen" , js_name = luminance)]
#[doc = "Getter for the `luminance` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/luminance)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Screen`, `ScreenLuminance`*"]
pub fn luminance(this: &Screen) -> Option<ScreenLuminance>;
# [wasm_bindgen (structural , method , getter , js_class = "Screen" , js_name = onchange)]
#[doc = "Getter for the `onchange` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/onchange)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Screen`*"]
pub fn onchange(this: &Screen) -> Option<::js_sys::Function>;
# [wasm_bindgen (structural , method , setter , js_class = "Screen" , js_name = onchange)]
#[doc = "Setter for the `onchange` field of this object."]
#[doc = ""]
#[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/onchange)"]
#[doc = ""]
#[doc = "*This API requires the following crate features to be activated: `Screen`*"]
pub fn set_onchange(this: &Screen, value: Option<&::js_sys::Function>);
}
|