pub struct ScreenInfo<'a> { /* private fields */ }Expand description
Screen information similar to the one returned by window.getScreenDetails() method, see https://w3c.github.io/window-management/#screendetailed.
Implementations§
Source§impl<'a> ScreenInfo<'a>
impl<'a> ScreenInfo<'a>
pub fn builder( left: i64, top: i64, width: u64, height: i64, availLeft: i64, availTop: i64, availWidth: u64, availHeight: i64, devicePixelRatio: f64, orientation: ScreenOrientation<'a>, colorDepth: i64, isExtended: bool, isInternal: bool, isPrimary: bool, label: impl Into<Cow<'a, str>>, id: ScreenId<'a>, ) -> ScreenInfoBuilder<'a>
pub fn left(&self) -> i64
pub fn top(&self) -> i64
pub fn width(&self) -> u64
pub fn height(&self) -> i64
pub fn availLeft(&self) -> i64
pub fn availTop(&self) -> i64
pub fn availWidth(&self) -> u64
pub fn availHeight(&self) -> i64
pub fn devicePixelRatio(&self) -> f64
pub fn orientation(&self) -> &ScreenOrientation<'a>
pub fn colorDepth(&self) -> i64
pub fn isExtended(&self) -> bool
pub fn isInternal(&self) -> bool
pub fn isPrimary(&self) -> bool
pub fn label(&self) -> &str
pub fn id(&self) -> &ScreenId<'a>
Trait Implementations§
Source§impl<'a> Clone for ScreenInfo<'a>
impl<'a> Clone for ScreenInfo<'a>
Source§fn clone(&self) -> ScreenInfo<'a>
fn clone(&self) -> ScreenInfo<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ScreenInfo<'a>
impl<'a> Debug for ScreenInfo<'a>
Source§impl<'a> Default for ScreenInfo<'a>
impl<'a> Default for ScreenInfo<'a>
Source§fn default() -> ScreenInfo<'a>
fn default() -> ScreenInfo<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for ScreenInfo<'a>
impl<'de, 'a> Deserialize<'de> for ScreenInfo<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for ScreenInfo<'a>
impl<'a> RefUnwindSafe for ScreenInfo<'a>
impl<'a> Send for ScreenInfo<'a>
impl<'a> Sync for ScreenInfo<'a>
impl<'a> Unpin for ScreenInfo<'a>
impl<'a> UnsafeUnpin for ScreenInfo<'a>
impl<'a> UnwindSafe for ScreenInfo<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more