pub struct PhysicalPoint {
pub x: f32,
pub y: f32,
}Expand description
A pixel coordinate in physical pixels, where x is on the horizontal axis with zero being at the left edge
and y is on the vertical axis with zero being at bottom edge.
Fields§
§x: f32The horizontal pixel distance from the left edge.
y: f32The vertical pixel distance from the bottom edge.
Trait Implementations§
Source§impl Clone for PixelPoint
impl Clone for PixelPoint
Source§fn clone(&self) -> PixelPoint
fn clone(&self) -> PixelPoint
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 PixelPoint
Source§impl Debug for PixelPoint
impl Debug for PixelPoint
Source§impl PartialEq for PixelPoint
impl PartialEq for PixelPoint
Source§fn eq(&self, other: &PixelPoint) -> bool
fn eq(&self, other: &PixelPoint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PixelPoint
Auto Trait Implementations§
impl Freeze for PixelPoint
impl RefUnwindSafe for PixelPoint
impl Send for PixelPoint
impl Sync for PixelPoint
impl Unpin for PixelPoint
impl UnsafeUnpin for PixelPoint
impl UnwindSafe for PixelPoint
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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