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(
9 extends = "EventTarget",
10 extends = "::js_sys::Object",
11 js_name = "ScreenDetails",
12 typescript_type = "ScreenDetails"
13 )]
14 #[derive(Debug, Clone, PartialEq, Eq)]
15 #[doc = "The `ScreenDetails` class."]
16 #[doc = ""]
17 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetails)"]
18 #[doc = ""]
19 #[doc = "*This API requires the following crate features to be activated: `ScreenDetails`*"]
20 #[doc = ""]
21 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
22 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
23 pub type ScreenDetails;
24 #[cfg(web_sys_unstable_apis)]
25 #[cfg(feature = "ScreenDetailed")]
26 #[wasm_bindgen(method, getter, js_class = "ScreenDetails", js_name = "screens")]
27 #[doc = "Getter for the `screens` field of this object."]
28 #[doc = ""]
29 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetails/screens)"]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `ScreenDetailed`, `ScreenDetails`*"]
32 #[doc = ""]
33 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
34 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
35 pub fn screens(this: &ScreenDetails) -> ::js_sys::Array<ScreenDetailed>;
36 #[cfg(web_sys_unstable_apis)]
37 #[cfg(feature = "ScreenDetailed")]
38 #[wasm_bindgen(method, getter, js_class = "ScreenDetails", js_name = "currentScreen")]
39 #[doc = "Getter for the `currentScreen` field of this object."]
40 #[doc = ""]
41 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetails/currentScreen)"]
42 #[doc = ""]
43 #[doc = "*This API requires the following crate features to be activated: `ScreenDetailed`, `ScreenDetails`*"]
44 #[doc = ""]
45 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
46 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
47 pub fn current_screen(this: &ScreenDetails) -> ScreenDetailed;
48 #[cfg(web_sys_unstable_apis)]
49 #[wasm_bindgen(
50 method,
51 getter,
52 js_class = "ScreenDetails",
53 js_name = "onscreenschange"
54 )]
55 #[doc = "Getter for the `onscreenschange` field of this object."]
56 #[doc = ""]
57 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetails/onscreenschange)"]
58 #[doc = ""]
59 #[doc = "*This API requires the following crate features to be activated: `ScreenDetails`*"]
60 #[doc = ""]
61 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
62 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
63 pub fn onscreenschange(this: &ScreenDetails) -> Option<::js_sys::Function>;
64 #[cfg(web_sys_unstable_apis)]
65 #[wasm_bindgen(
66 method,
67 setter,
68 js_class = "ScreenDetails",
69 js_name = "onscreenschange"
70 )]
71 #[doc = "Setter for the `onscreenschange` field of this object."]
72 #[doc = ""]
73 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetails/onscreenschange)"]
74 #[doc = ""]
75 #[doc = "*This API requires the following crate features to be activated: `ScreenDetails`*"]
76 #[doc = ""]
77 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
78 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
79 pub fn set_onscreenschange(this: &ScreenDetails, value: Option<&::js_sys::Function>);
80 #[cfg(web_sys_unstable_apis)]
81 #[wasm_bindgen(
82 method,
83 getter,
84 js_class = "ScreenDetails",
85 js_name = "oncurrentscreenchange"
86 )]
87 #[doc = "Getter for the `oncurrentscreenchange` field of this object."]
88 #[doc = ""]
89 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetails/oncurrentscreenchange)"]
90 #[doc = ""]
91 #[doc = "*This API requires the following crate features to be activated: `ScreenDetails`*"]
92 #[doc = ""]
93 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
94 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
95 pub fn oncurrentscreenchange(this: &ScreenDetails) -> Option<::js_sys::Function>;
96 #[cfg(web_sys_unstable_apis)]
97 #[wasm_bindgen(
98 method,
99 setter,
100 js_class = "ScreenDetails",
101 js_name = "oncurrentscreenchange"
102 )]
103 #[doc = "Setter for the `oncurrentscreenchange` field of this object."]
104 #[doc = ""]
105 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetails/oncurrentscreenchange)"]
106 #[doc = ""]
107 #[doc = "*This API requires the following crate features to be activated: `ScreenDetails`*"]
108 #[doc = ""]
109 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
110 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
111 pub fn set_oncurrentscreenchange(this: &ScreenDetails, value: Option<&::js_sys::Function>);
112}