1 | #![allow (unused_imports)] |
2 | #![allow (clippy::all)] |
3 | use super::*; |
4 | use wasm_bindgen::prelude::*; |
5 | #[wasm_bindgen ] |
6 | unsafeextern "C" { |
7 | # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = Screen , typescript_type = "Screen" )] |
8 | #[derive (Debug, Clone, PartialEq, Eq)] |
9 | #[doc = "The `Screen` class." ] |
10 | #[doc = "" ] |
11 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen)" ] |
12 | #[doc = "" ] |
13 | #[doc = "*This API requires the following crate features to be activated: `Screen`*" ] |
14 | pub type Screen; |
15 | # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = availWidth)] |
16 | #[doc = "Getter for the `availWidth` field of this object." ] |
17 | #[doc = "" ] |
18 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/availWidth)" ] |
19 | #[doc = "" ] |
20 | #[doc = "*This API requires the following crate features to be activated: `Screen`*" ] |
21 | pub unsafefn avail_width(this: &Screen) -> Result<i32, JsValue>; |
22 | # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = availHeight)] |
23 | #[doc = "Getter for the `availHeight` field of this object." ] |
24 | #[doc = "" ] |
25 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/availHeight)" ] |
26 | #[doc = "" ] |
27 | #[doc = "*This API requires the following crate features to be activated: `Screen`*" ] |
28 | pub unsafefn avail_height(this: &Screen) -> Result<i32, JsValue>; |
29 | # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = width)] |
30 | #[doc = "Getter for the `width` field of this object." ] |
31 | #[doc = "" ] |
32 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/width)" ] |
33 | #[doc = "" ] |
34 | #[doc = "*This API requires the following crate features to be activated: `Screen`*" ] |
35 | pub unsafefn width(this: &Screen) -> Result<i32, JsValue>; |
36 | # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = height)] |
37 | #[doc = "Getter for the `height` field of this object." ] |
38 | #[doc = "" ] |
39 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/height)" ] |
40 | #[doc = "" ] |
41 | #[doc = "*This API requires the following crate features to be activated: `Screen`*" ] |
42 | pub unsafefn height(this: &Screen) -> Result<i32, JsValue>; |
43 | # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = colorDepth)] |
44 | #[doc = "Getter for the `colorDepth` field of this object." ] |
45 | #[doc = "" ] |
46 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/colorDepth)" ] |
47 | #[doc = "" ] |
48 | #[doc = "*This API requires the following crate features to be activated: `Screen`*" ] |
49 | pub unsafefn color_depth(this: &Screen) -> Result<i32, JsValue>; |
50 | # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = pixelDepth)] |
51 | #[doc = "Getter for the `pixelDepth` field of this object." ] |
52 | #[doc = "" ] |
53 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/pixelDepth)" ] |
54 | #[doc = "" ] |
55 | #[doc = "*This API requires the following crate features to be activated: `Screen`*" ] |
56 | pub unsafefn pixel_depth(this: &Screen) -> Result<i32, JsValue>; |
57 | # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = top)] |
58 | #[doc = "Getter for the `top` field of this object." ] |
59 | #[doc = "" ] |
60 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/top)" ] |
61 | #[doc = "" ] |
62 | #[doc = "*This API requires the following crate features to be activated: `Screen`*" ] |
63 | pub unsafefn top(this: &Screen) -> Result<i32, JsValue>; |
64 | # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = left)] |
65 | #[doc = "Getter for the `left` field of this object." ] |
66 | #[doc = "" ] |
67 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/left)" ] |
68 | #[doc = "" ] |
69 | #[doc = "*This API requires the following crate features to be activated: `Screen`*" ] |
70 | pub unsafefn left(this: &Screen) -> Result<i32, JsValue>; |
71 | # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = availTop)] |
72 | #[doc = "Getter for the `availTop` field of this object." ] |
73 | #[doc = "" ] |
74 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/availTop)" ] |
75 | #[doc = "" ] |
76 | #[doc = "*This API requires the following crate features to be activated: `Screen`*" ] |
77 | pub unsafefn avail_top(this: &Screen) -> Result<i32, JsValue>; |
78 | # [wasm_bindgen (structural , catch , method , getter , js_class = "Screen" , js_name = availLeft)] |
79 | #[doc = "Getter for the `availLeft` field of this object." ] |
80 | #[doc = "" ] |
81 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/availLeft)" ] |
82 | #[doc = "" ] |
83 | #[doc = "*This API requires the following crate features to be activated: `Screen`*" ] |
84 | pub unsafefn avail_left(this: &Screen) -> Result<i32, JsValue>; |
85 | #[cfg (feature = "ScreenOrientation" )] |
86 | # [wasm_bindgen (structural , method , getter , js_class = "Screen" , js_name = orientation)] |
87 | #[doc = "Getter for the `orientation` field of this object." ] |
88 | #[doc = "" ] |
89 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation)" ] |
90 | #[doc = "" ] |
91 | #[doc = "*This API requires the following crate features to be activated: `Screen`, `ScreenOrientation`*" ] |
92 | pub unsafefn orientation(this: &Screen) -> ScreenOrientation; |
93 | #[cfg (feature = "ScreenColorGamut" )] |
94 | # [wasm_bindgen (structural , method , getter , js_class = "Screen" , js_name = colorGamut)] |
95 | #[doc = "Getter for the `colorGamut` field of this object." ] |
96 | #[doc = "" ] |
97 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/colorGamut)" ] |
98 | #[doc = "" ] |
99 | #[doc = "*This API requires the following crate features to be activated: `Screen`, `ScreenColorGamut`*" ] |
100 | pub fn color_gamut(this: &Screen) -> ScreenColorGamut; |
101 | #[cfg (feature = "ScreenLuminance" )] |
102 | # [wasm_bindgen (structural , method , getter , js_class = "Screen" , js_name = luminance)] |
103 | #[doc = "Getter for the `luminance` field of this object." ] |
104 | #[doc = "" ] |
105 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/luminance)" ] |
106 | #[doc = "" ] |
107 | #[doc = "*This API requires the following crate features to be activated: `Screen`, `ScreenLuminance`*" ] |
108 | pub fn luminance(this: &Screen) -> Option<ScreenLuminance>; |
109 | # [wasm_bindgen (structural , method , getter , js_class = "Screen" , js_name = onchange)] |
110 | #[doc = "Getter for the `onchange` field of this object." ] |
111 | #[doc = "" ] |
112 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/onchange)" ] |
113 | #[doc = "" ] |
114 | #[doc = "*This API requires the following crate features to be activated: `Screen`*" ] |
115 | pub unsafefn onchange(this: &Screen) -> Option<::js_sys::Function>; |
116 | # [wasm_bindgen (structural , method , setter , js_class = "Screen" , js_name = onchange)] |
117 | #[doc = "Setter for the `onchange` field of this object." ] |
118 | #[doc = "" ] |
119 | #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/onchange)" ] |
120 | #[doc = "" ] |
121 | #[doc = "*This API requires the following crate features to be activated: `Screen`*" ] |
122 | pub unsafefn set_onchange(this: &Screen, value: Option<&::js_sys::Function>); |
123 | } |
124 | |