pub struct Point {
pub x: i32,
pub y: i32,
}Expand description
2D point in virtual-screen coordinates (pixels).
Values match what the Windows shell reports for
IFolderView2::GetItemPosition: signed 32-bit integers in the
virtual-screen coordinate system — a single space that spans
every attached monitor. The primary monitor’s top-left is (0, 0);
coordinates on other monitors can be negative when they are
arranged to the left of or above the primary. Use
crate::MonitorInfo (populated by
crate::DesktopBackend::list_monitors) to discover where each
monitor lives in this space.
Fields§
§x: i32§y: i32Implementations§
Trait Implementations§
impl Copy for Point
impl Eq for Point
impl StructuralPartialEq for Point
Auto Trait Implementations§
impl Freeze for Point
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnsafeUnpin for Point
impl UnwindSafe for Point
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