pub struct Monitor {
pub id: String,
pub name: String,
pub frame: Rect,
pub work_area: Rect,
pub scale: f64,
pub primary: bool,
}Expand description
One display (docs/windows.md “Monitors”), in points on the desktop’s coordinate space: top-left origin at the primary display’s top-left corner.
Fields§
§id: StringStable for the display across launches where the platform offers it (a display UUID, a connector name); an index otherwise.
name: StringThe display’s name, for a picker (“Built-in Retina Display”, “DELL U2720Q”).
frame: RectThe display’s whole area.
work_area: RectThe part windows should use: the frame minus the menu bar, Dock, taskbar or panels.
scale: f64Device pixels per point.
primary: boolThe display the desktop’s menu bar or primary taskbar is on.
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 UnsafeUnpin 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