web_sys/features/
gen_ScreenDetailed.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 = "Screen",
10 extends = "EventTarget",
11 extends = "::js_sys::Object",
12 js_name = "ScreenDetailed",
13 typescript_type = "ScreenDetailed"
14 )]
15 #[derive(Debug, Clone, PartialEq, Eq)]
16 #[doc = "The `ScreenDetailed` class."]
17 #[doc = ""]
18 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetailed)"]
19 #[doc = ""]
20 #[doc = "*This API requires the following crate features to be activated: `ScreenDetailed`*"]
21 #[doc = ""]
22 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
23 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
24 pub type ScreenDetailed;
25 #[cfg(web_sys_unstable_apis)]
26 #[wasm_bindgen(method, getter, js_class = "ScreenDetailed", js_name = "availLeft")]
27 #[doc = "Getter for the `availLeft` field of this object."]
28 #[doc = ""]
29 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetailed/availLeft)"]
30 #[doc = ""]
31 #[doc = "*This API requires the following crate features to be activated: `ScreenDetailed`*"]
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 avail_left(this: &ScreenDetailed) -> i32;
36 #[cfg(web_sys_unstable_apis)]
37 #[wasm_bindgen(method, getter, js_class = "ScreenDetailed", js_name = "availTop")]
38 #[doc = "Getter for the `availTop` field of this object."]
39 #[doc = ""]
40 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetailed/availTop)"]
41 #[doc = ""]
42 #[doc = "*This API requires the following crate features to be activated: `ScreenDetailed`*"]
43 #[doc = ""]
44 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
45 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
46 pub fn avail_top(this: &ScreenDetailed) -> i32;
47 #[cfg(web_sys_unstable_apis)]
48 #[wasm_bindgen(method, getter, js_class = "ScreenDetailed", js_name = "left")]
49 #[doc = "Getter for the `left` field of this object."]
50 #[doc = ""]
51 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetailed/left)"]
52 #[doc = ""]
53 #[doc = "*This API requires the following crate features to be activated: `ScreenDetailed`*"]
54 #[doc = ""]
55 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
56 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
57 pub fn left(this: &ScreenDetailed) -> i32;
58 #[cfg(web_sys_unstable_apis)]
59 #[wasm_bindgen(method, getter, js_class = "ScreenDetailed", js_name = "top")]
60 #[doc = "Getter for the `top` field of this object."]
61 #[doc = ""]
62 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetailed/top)"]
63 #[doc = ""]
64 #[doc = "*This API requires the following crate features to be activated: `ScreenDetailed`*"]
65 #[doc = ""]
66 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
67 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
68 pub fn top(this: &ScreenDetailed) -> i32;
69 #[cfg(web_sys_unstable_apis)]
70 #[wasm_bindgen(method, getter, js_class = "ScreenDetailed", js_name = "isPrimary")]
71 #[doc = "Getter for the `isPrimary` field of this object."]
72 #[doc = ""]
73 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetailed/isPrimary)"]
74 #[doc = ""]
75 #[doc = "*This API requires the following crate features to be activated: `ScreenDetailed`*"]
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 is_primary(this: &ScreenDetailed) -> bool;
80 #[cfg(web_sys_unstable_apis)]
81 #[wasm_bindgen(method, getter, js_class = "ScreenDetailed", js_name = "isInternal")]
82 #[doc = "Getter for the `isInternal` field of this object."]
83 #[doc = ""]
84 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetailed/isInternal)"]
85 #[doc = ""]
86 #[doc = "*This API requires the following crate features to be activated: `ScreenDetailed`*"]
87 #[doc = ""]
88 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
89 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
90 pub fn is_internal(this: &ScreenDetailed) -> bool;
91 #[cfg(web_sys_unstable_apis)]
92 #[wasm_bindgen(
93 method,
94 getter,
95 js_class = "ScreenDetailed",
96 js_name = "devicePixelRatio"
97 )]
98 #[doc = "Getter for the `devicePixelRatio` field of this object."]
99 #[doc = ""]
100 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetailed/devicePixelRatio)"]
101 #[doc = ""]
102 #[doc = "*This API requires the following crate features to be activated: `ScreenDetailed`*"]
103 #[doc = ""]
104 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
105 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
106 pub fn device_pixel_ratio(this: &ScreenDetailed) -> f32;
107 #[cfg(web_sys_unstable_apis)]
108 #[wasm_bindgen(method, getter, js_class = "ScreenDetailed", js_name = "label")]
109 #[doc = "Getter for the `label` field of this object."]
110 #[doc = ""]
111 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenDetailed/label)"]
112 #[doc = ""]
113 #[doc = "*This API requires the following crate features to be activated: `ScreenDetailed`*"]
114 #[doc = ""]
115 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
116 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
117 pub fn label(this: &ScreenDetailed) -> ::alloc::string::String;
118}