web_sys/features/
gen_ScreenDetails.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8 # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = ScreenDetails , typescript_type = "ScreenDetails")]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `ScreenDetails` class."]
11 #[doc = ""]
12 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetails)"]
13 #[doc = ""]
14 #[doc = "*This API requires the following crate features to be activated: `ScreenDetails`*"]
15 #[doc = ""]
16 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
17 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
18 pub type ScreenDetails;
19 #[cfg(web_sys_unstable_apis)]
20 #[cfg(feature = "ScreenDetailed")]
21 # [wasm_bindgen (structural , method , getter , js_class = "ScreenDetails" , js_name = screens)]
22 #[doc = "Getter for the `screens` field of this object."]
23 #[doc = ""]
24 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetails/screens)"]
25 #[doc = ""]
26 #[doc = "*This API requires the following crate features to be activated: `ScreenDetailed`, `ScreenDetails`*"]
27 #[doc = ""]
28 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
29 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
30 pub fn screens(this: &ScreenDetails) -> ::js_sys::Array<ScreenDetailed>;
31 #[cfg(web_sys_unstable_apis)]
32 #[cfg(feature = "ScreenDetailed")]
33 # [wasm_bindgen (structural , method , getter , js_class = "ScreenDetails" , js_name = currentScreen)]
34 #[doc = "Getter for the `currentScreen` field of this object."]
35 #[doc = ""]
36 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetails/currentScreen)"]
37 #[doc = ""]
38 #[doc = "*This API requires the following crate features to be activated: `ScreenDetailed`, `ScreenDetails`*"]
39 #[doc = ""]
40 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
41 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
42 pub fn current_screen(this: &ScreenDetails) -> ScreenDetailed;
43 #[cfg(web_sys_unstable_apis)]
44 # [wasm_bindgen (structural , method , getter , js_class = "ScreenDetails" , js_name = onscreenschange)]
45 #[doc = "Getter for the `onscreenschange` field of this object."]
46 #[doc = ""]
47 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetails/onscreenschange)"]
48 #[doc = ""]
49 #[doc = "*This API requires the following crate features to be activated: `ScreenDetails`*"]
50 #[doc = ""]
51 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
52 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
53 pub fn onscreenschange(this: &ScreenDetails) -> Option<::js_sys::Function>;
54 #[cfg(web_sys_unstable_apis)]
55 # [wasm_bindgen (structural , method , setter , js_class = "ScreenDetails" , js_name = onscreenschange)]
56 #[doc = "Setter for the `onscreenschange` field of this object."]
57 #[doc = ""]
58 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetails/onscreenschange)"]
59 #[doc = ""]
60 #[doc = "*This API requires the following crate features to be activated: `ScreenDetails`*"]
61 #[doc = ""]
62 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
63 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
64 pub fn set_onscreenschange(this: &ScreenDetails, value: Option<&::js_sys::Function>);
65 #[cfg(web_sys_unstable_apis)]
66 # [wasm_bindgen (structural , method , getter , js_class = "ScreenDetails" , js_name = oncurrentscreenchange)]
67 #[doc = "Getter for the `oncurrentscreenchange` field of this object."]
68 #[doc = ""]
69 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetails/oncurrentscreenchange)"]
70 #[doc = ""]
71 #[doc = "*This API requires the following crate features to be activated: `ScreenDetails`*"]
72 #[doc = ""]
73 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
74 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
75 pub fn oncurrentscreenchange(this: &ScreenDetails) -> Option<::js_sys::Function>;
76 #[cfg(web_sys_unstable_apis)]
77 # [wasm_bindgen (structural , method , setter , js_class = "ScreenDetails" , js_name = oncurrentscreenchange)]
78 #[doc = "Setter for the `oncurrentscreenchange` field of this object."]
79 #[doc = ""]
80 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetails/oncurrentscreenchange)"]
81 #[doc = ""]
82 #[doc = "*This API requires the following crate features to be activated: `ScreenDetails`*"]
83 #[doc = ""]
84 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
85 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
86 pub fn set_oncurrentscreenchange(this: &ScreenDetails, value: Option<&::js_sys::Function>);
87}