pub struct SoftEventContext { /* private fields */ }Expand description
A context passed to the event handler.
Trait Implementations§
Source§impl EventContext<PhysicalPosition<f64>> for SoftEventContext
impl EventContext<PhysicalPosition<f64>> for SoftEventContext
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 Freeze for SoftEventContext
impl RefUnwindSafe for SoftEventContext
impl Send for SoftEventContext
impl Sync for SoftEventContext
impl Unpin for SoftEventContext
impl UnwindSafe for SoftEventContext
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