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