summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_Screen.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/web-sys/src/features/gen_Screen.rs
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_Screen.rs')
-rw-r--r--vendor/web-sys/src/features/gen_Screen.rs122
1 files changed, 122 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_Screen.rs b/vendor/web-sys/src/features/gen_Screen.rs
new file mode 100644
index 000000000..fc2b7a54e
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_Screen.rs
@@ -0,0 +1,122 @@
+#![allow(unused_imports)]
+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>);
+}