pub struct ScreenPoint {
pub x: f64,
pub y: f64,
}Expand description
Logical screen-space position in pixels relative to the viewport origin.
Fields§
§x: f64X coordinate in logical pixels (0 = left).
y: f64Y coordinate in logical pixels (0 = top).
Implementations§
Trait Implementations§
Source§impl Clone for ScreenPoint
impl Clone for ScreenPoint
Source§fn clone(&self) -> ScreenPoint
fn clone(&self) -> ScreenPoint
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 ScreenPoint
impl Debug for ScreenPoint
Source§impl Default for ScreenPoint
impl Default for ScreenPoint
Source§fn default() -> ScreenPoint
fn default() -> ScreenPoint
Returns the “default value” for a type. Read more
Source§impl PartialEq for ScreenPoint
impl PartialEq for ScreenPoint
impl Copy for ScreenPoint
impl StructuralPartialEq for ScreenPoint
Auto Trait Implementations§
impl Freeze for ScreenPoint
impl RefUnwindSafe for ScreenPoint
impl Send for ScreenPoint
impl Sync for ScreenPoint
impl Unpin for ScreenPoint
impl UnsafeUnpin for ScreenPoint
impl UnwindSafe for ScreenPoint
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