pub struct VirtualDesktop {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
}Expand description
The bounding box of every monitor attached to this machine, as Windows
reports it — SM_XVIRTUALSCREEN, SM_YVIRTUALSCREEN,
SM_CXVIRTUALSCREEN, SM_CYVIRTUALSCREEN.
The origin is the primary monitor’s top-left, so x and y are
negative whenever a monitor sits above or to the left of it. That is
the normal case for a left-hand secondary display, not an error, and it
is the arrangement most likely to be mis-clicked by code that assumes a
desktop starts at (0, 0).
Fields§
§x: i32§y: i32§width: i32§height: i32Trait Implementations§
Source§impl Clone for VirtualDesktop
impl Clone for VirtualDesktop
Source§fn clone(&self) -> VirtualDesktop
fn clone(&self) -> VirtualDesktop
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VirtualDesktop
Source§impl Debug for VirtualDesktop
impl Debug for VirtualDesktop
impl Eq for VirtualDesktop
Source§impl PartialEq for VirtualDesktop
impl PartialEq for VirtualDesktop
Source§impl Serialize for VirtualDesktop
impl Serialize for VirtualDesktop
impl StructuralPartialEq for VirtualDesktop
Auto Trait Implementations§
impl Freeze for VirtualDesktop
impl RefUnwindSafe for VirtualDesktop
impl Send for VirtualDesktop
impl Sync for VirtualDesktop
impl Unpin for VirtualDesktop
impl UnsafeUnpin for VirtualDesktop
impl UnwindSafe for VirtualDesktop
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.