pub struct Monitor {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
pub scale: f32,
}Expand description
A monitor’s area in points (logical pixels), in desktop coordinates: origin at the primary monitor’s top left, y down.
Fields§
§x: f32§y: f32§width: f32§height: f32§scale: f32Pixels per point.
Trait Implementations§
impl Copy for Monitor
impl StructuralPartialEq for Monitor
Auto Trait Implementations§
impl Forget for Monitor
impl Freeze for Monitor
impl Move 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