pub struct BackGestureEvent {
pub phase: BackGesturePhase,
pub start_position: Point<Pixels>,
pub progress: f32,
}Expand description
A back-navigation gesture, such as the iOS swipe from the leading screen edge.
Elements receive it through
InteractiveElement::on_back_gesture.
The innermost element under Self::start_position claims the whole
gesture when it starts; the platform cancels the gesture if no element does.
Every phase is delivered at the start position, so the claiming element
should stay in place while it animates its contents.
Fields§
§phase: BackGesturePhaseThe phase of the gesture.
start_position: Point<Pixels>Where the gesture started.
progress: f32How far the gesture has travelled toward going back, from 0 to 1.
Trait Implementations§
Source§impl Clone for BackGestureEvent
impl Clone for BackGestureEvent
Source§impl Debug for BackGestureEvent
impl Debug for BackGestureEvent
Source§impl Default for BackGestureEvent
impl Default for BackGestureEvent
impl GestureEvent for BackGestureEvent
Source§impl InputEvent for BackGestureEvent
impl InputEvent for BackGestureEvent
Source§fn to_platform_input(self) -> PlatformInput
fn to_platform_input(self) -> PlatformInput
Convert this event into the platform input enum.
impl MouseEvent for BackGestureEvent
Auto Trait Implementations§
impl Freeze for BackGestureEvent
impl RefUnwindSafe for BackGestureEvent
impl Send for BackGestureEvent
impl Sync for BackGestureEvent
impl Unpin for BackGestureEvent
impl UnsafeUnpin for BackGestureEvent
impl UnwindSafe for BackGestureEvent
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().