pub struct PinchEvent {
pub position: Point<Pixels>,
pub delta: f32,
pub modifiers: Modifiers,
pub phase: TouchPhase,
}Expand description
A pinch gesture event from the platform, generated when the user performs a pinch-to-zoom gesture (typically on a trackpad).
Fields§
§position: Point<Pixels>The position of the pinch center on the window.
delta: f32The zoom delta for this event. Positive values indicate zooming in, negative values indicate zooming out. For example, 0.1 represents a 10% zoom increase.
modifiers: ModifiersThe modifiers that were held down during the pinch gesture.
phase: TouchPhaseThe phase of the pinch gesture.
Methods from Deref<Target = Modifiers>§
Trait Implementations§
Source§impl Clone for PinchEvent
impl Clone for PinchEvent
Source§fn clone(&self) -> PinchEvent
fn clone(&self) -> PinchEvent
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 moreSource§impl Debug for PinchEvent
impl Debug for PinchEvent
Source§impl Default for PinchEvent
impl Default for PinchEvent
Source§fn default() -> PinchEvent
fn default() -> PinchEvent
Returns the “default value” for a type. Read more
Source§impl Deref for PinchEvent
impl Deref for PinchEvent
Source§impl InputEvent for PinchEvent
impl InputEvent for PinchEvent
Source§fn to_platform_input(self) -> PlatformInput
fn to_platform_input(self) -> PlatformInput
Convert this event into the platform input enum.
impl GestureEvent for PinchEvent
impl MouseEvent for PinchEvent
Auto Trait Implementations§
impl Freeze for PinchEvent
impl RefUnwindSafe for PinchEvent
impl Send for PinchEvent
impl Sync for PinchEvent
impl Unpin for PinchEvent
impl UnsafeUnpin for PinchEvent
impl UnwindSafe for PinchEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().