pub struct ScreenInfo {Show 16 fields
pub left: i64,
pub top: i64,
pub width: i64,
pub height: i64,
pub avail_left: i64,
pub avail_top: i64,
pub avail_width: i64,
pub avail_height: i64,
pub device_pixel_ratio: f64,
pub orientation: ScreenOrientation,
pub color_depth: i64,
pub is_extended: bool,
pub is_internal: bool,
pub is_primary: bool,
pub label: String,
pub id: ScreenId,
}Expand description
Screen information similar to the one returned by window.getScreenDetails() method, see https://w3c.github.io/window-management/#screendetailed. ScreenInfo
Fields§
§left: i64Offset of the left edge of the screen.
top: i64Offset of the top edge of the screen.
width: i64Width of the screen.
height: i64Height of the screen.
avail_left: i64Offset of the left edge of the available screen area.
avail_top: i64Offset of the top edge of the available screen area.
avail_width: i64Width of the available screen area.
avail_height: i64Height of the available screen area.
device_pixel_ratio: f64Specifies the screen’s device pixel ratio.
orientation: ScreenOrientationSpecifies the screen’s orientation.
color_depth: i64Specifies the screen’s color depth in bits.
is_extended: boolIndicates whether the device has multiple screens.
is_internal: boolIndicates whether the screen is internal to the device or external, attached to the device.
is_primary: boolIndicates whether the screen is set as the the operating system primary screen.
label: StringSpecifies the descriptive label for the screen.
id: ScreenIdSpecifies the unique identifier of the screen.
Implementations§
Source§impl ScreenInfo
impl ScreenInfo
pub fn builder() -> ScreenInfoBuilder
Source§impl ScreenInfo
impl ScreenInfo
pub const IDENTIFIER: &'static str = "Emulation.ScreenInfo"
Trait Implementations§
Source§impl Clone for ScreenInfo
impl Clone for ScreenInfo
Source§fn clone(&self) -> ScreenInfo
fn clone(&self) -> ScreenInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more