pub struct Point {
pub x: i32,
pub y: i32,
}Expand description
A position in the window, in pixels: the origin is the top-left corner of the window, x grows to the right, and y grows downwards.
Fields§
§x: i32The distance from the left edge of the window.
y: i32The distance from the top edge of the window.
Implementations§
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