#[repr(C)]pub struct SurfacePosition {
pub x: f64,
pub y: f64,
}Expand description
A surface-space position in pixels.
This is not a terminal grid coordinate. It represents an x/y position in the rendered surface coordinate space, with (0, 0) at the top-left of the surface.
Fields§
§x: f64X position in surface pixels.
y: f64Y position in surface pixels.
Trait Implementations§
Source§impl Clone for SurfacePosition
impl Clone for SurfacePosition
Source§fn clone(&self) -> SurfacePosition
fn clone(&self) -> SurfacePosition
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 SurfacePosition
Source§impl Debug for SurfacePosition
impl Debug for SurfacePosition
Source§impl Default for SurfacePosition
impl Default for SurfacePosition
Source§fn default() -> SurfacePosition
fn default() -> SurfacePosition
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SurfacePosition
impl RefUnwindSafe for SurfacePosition
impl Send for SurfacePosition
impl Sync for SurfacePosition
impl Unpin for SurfacePosition
impl UnsafeUnpin for SurfacePosition
impl UnwindSafe for SurfacePosition
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