pub struct PixelsEventContext<'s, 'w> { /* private fields */ }Expand description
A context passed to the event handler.
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> Freeze for PixelsEventContext<'s, 'w>
impl<'s, 'w> !RefUnwindSafe for PixelsEventContext<'s, 'w>
impl<'s, 'w> Send for PixelsEventContext<'s, 'w>
impl<'s, 'w> Sync for PixelsEventContext<'s, 'w>
impl<'s, 'w> Unpin for PixelsEventContext<'s, 'w>
impl<'s, 'w> !UnwindSafe for PixelsEventContext<'s, 'w>
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