pub struct MonitorRect {
pub x: i32,
pub y: i32,
pub width: u32,
pub height: u32,
}Expand description
Pixel rectangle for a monitor in the desktop’s coordinate space. Used to position overlay windows. Origin can be negative on multi-monitor setups where the primary is not the top-left display.
Fields§
§x: i32§y: i32§width: u32§height: u32Trait Implementations§
Source§impl Clone for MonitorRect
impl Clone for MonitorRect
Source§fn clone(&self) -> MonitorRect
fn clone(&self) -> MonitorRect
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MonitorRect
impl Debug for MonitorRect
Source§impl PartialEq for MonitorRect
impl PartialEq for MonitorRect
impl Copy for MonitorRect
impl Eq for MonitorRect
impl StructuralPartialEq for MonitorRect
Auto Trait Implementations§
impl Freeze for MonitorRect
impl RefUnwindSafe for MonitorRect
impl Send for MonitorRect
impl Sync for MonitorRect
impl Unpin for MonitorRect
impl UnsafeUnpin for MonitorRect
impl UnwindSafe for MonitorRect
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.