pub struct Monitor { /* private fields */ }Expand description
Represents the geometry of a monitor.
Implementations§
Source§impl Monitor
impl Monitor
Sourcepub fn dpi(&self) -> Size
pub fn dpi(&self) -> Size
Dpi of the monitor, 1.0 if no scale. You should take it into
consideration when setting the location of windows.
See Monitor::region_scaled & Monitor::client_scaled.
Sourcepub fn region_scaled(&self) -> Rect
pub fn region_scaled(&self) -> Rect
Scaled physical region.
Sourcepub fn client_scaled(&self) -> Rect
pub fn client_scaled(&self) -> Rect
Scaled client region.
Trait Implementations§
impl StructuralPartialEq for Monitor
Auto Trait Implementations§
impl Freeze for Monitor
impl RefUnwindSafe for Monitor
impl Send for Monitor
impl Sync for Monitor
impl Unpin for Monitor
impl UnwindSafe for Monitor
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