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§
source§impl PartialEq for Monitor
impl PartialEq for Monitor
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)