pub struct Monitor(/* private fields */);
Expand description
Allows you to retrieve information about a given monitor.
Implementations§
Source§impl Monitor
impl Monitor
Sourcepub fn size(&self) -> PhysicalSize
pub fn size(&self) -> PhysicalSize
The monitor’s resolution.
Sourcepub fn position(&self) -> PhysicalPosition
pub fn position(&self) -> PhysicalPosition
The Top-left corner position of the monitor relative to the larger full screen area.
Sourcepub fn scale_factor(&self) -> u32
pub fn scale_factor(&self) -> u32
The scale factor that can be used to map physical pixels to logical pixels.
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