pub struct Monitor {
pub id: String,
pub x: i32,
pub y: i32,
pub width: u32,
pub height: u32,
pub primary: bool,
}Expand description
One monitor, in physical pixels.
Fields§
§id: StringStable id that survives reboots and re-plugging: the device path on Windows. Per-monitor seeds and saved scenes key on it (PLAN.md 2.1).
x: i32Position on the virtual screen (the origin can be negative).
y: i32§width: u32§height: u32§primary: boolTrait Implementations§
impl Eq 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