pub struct Display {
pub id: DisplayId,
pub origin: LogicalPosition<i32>,
pub size: LogicalSize<u32>,
pub scale_factor: f64,
pub is_primary: bool,
pub is_mirrored: bool,
}Expand description
A display.
This struct provides a cross-platform interface to interact with displays. You can get the display’s id, origin, size, and check if it’s mirrored.
Fields§
§id: DisplayIdThe unique identifier of the display.
origin: LogicalPosition<i32>The origin of the display.
size: LogicalSize<u32>The size of the display.
scale_factor: f64The scale factor of the display.
is_primary: boolWhether the display is the primary monitor.
is_mirrored: boolWhether the display is mirrored.
Trait Implementations§
impl StructuralPartialEq for Display
Auto Trait Implementations§
impl Freeze for Display
impl RefUnwindSafe for Display
impl Send for Display
impl Sync for Display
impl Unpin for Display
impl UnwindSafe for Display
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