pub struct PixelsEventContext<'s, 'w, 'a> { /* private fields */ }Expand description
A context passed to the event handler.
Implementations§
Source§impl PixelsEventContext<'_, '_, '_>
impl PixelsEventContext<'_, '_, '_>
Trait Implementations§
Source§impl EventContext<PhysicalPosition<f64>> for PixelsEventContext<'_, '_, '_>
impl EventContext<PhysicalPosition<f64>> for PixelsEventContext<'_, '_, '_>
Source§type SurfaceSpace = Option<PhysicalPosition<u32>>
type SurfaceSpace = Option<PhysicalPosition<u32>>
Surface space coordinates representation.
Source§fn estimate_surface_space(
&self,
event_space: PhysicalPosition<f64>,
) -> Self::SurfaceSpace
fn estimate_surface_space( &self, event_space: PhysicalPosition<f64>, ) -> Self::SurfaceSpace
Recalculate from the event space coordinates into the surface space coordinates.
Auto Trait Implementations§
impl<'s, 'w, 'a> Freeze for PixelsEventContext<'s, 'w, 'a>
impl<'s, 'w, 'a> !RefUnwindSafe for PixelsEventContext<'s, 'w, 'a>
impl<'s, 'w, 'a> !Send for PixelsEventContext<'s, 'w, 'a>
impl<'s, 'w, 'a> !Sync for PixelsEventContext<'s, 'w, 'a>
impl<'s, 'w, 'a> Unpin for PixelsEventContext<'s, 'w, 'a>
impl<'s, 'w, 'a> UnsafeUnpin for PixelsEventContext<'s, 'w, 'a>
impl<'s, 'w, 'a> !UnwindSafe for PixelsEventContext<'s, 'w, 'a>
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