#[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
impl Copy for SurfacePosition
Source§impl Debug for SurfacePosition
impl Debug for SurfacePosition
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