pub struct BackGesture {
pub active: bool,
pub progress: f32,
pub edge: SwipeEdge,
}Expand description
The current predictive-back gesture.
Fields§
§active: boolWhether the user is currently dragging the back gesture.
progress: f32How far the gesture has travelled, 0.0 at the edge. Android commits a
back gesture after a fraction of that travel, so a view should finish its
transition at 1.0 rather than at the release point.
edge: SwipeEdgeThe screen edge the gesture started from.
Trait Implementations§
Source§impl Clone for BackGesture
impl Clone for BackGesture
impl Copy for BackGesture
Source§impl Debug for BackGesture
impl Debug for BackGesture
Source§impl Default for BackGesture
impl Default for BackGesture
Source§impl PartialEq for BackGesture
impl PartialEq for BackGesture
impl StructuralPartialEq for BackGesture
Auto Trait Implementations§
impl Forget for BackGesture
impl Freeze for BackGesture
impl Move for BackGesture
impl RefUnwindSafe for BackGesture
impl Send for BackGesture
impl Sync for BackGesture
impl Unpin for BackGesture
impl UnsafeUnpin for BackGesture
impl UnwindSafe for BackGesture
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