pub struct OverscrollStretch { /* private fields */ }Expand description
The stretch along one axis of one scrollable.
Its amount is signed: negative towards the start of the axis (the top, or the left), positive towards the end — the physical edge, whichever way the content scrolls.
Implementations§
Source§impl OverscrollStretch
impl OverscrollStretch
Sourcepub fn pull(&mut self, overscroll: f32, towards_start: bool, extent: f32)
pub fn pull(&mut self, overscroll: f32, towards_start: bool, extent: f32)
A finger dragged overscroll pixels past the edge (a magnitude), towards the
start of the axis or its end, in a viewport extent long.
Sourcepub fn absorb_impact(&mut self, velocity: f32, towards_start: bool)
pub fn absorb_impact(&mut self, velocity: f32, towards_start: bool)
A fling reached the edge at velocity px/s (a magnitude), towards the start or the
end: the stretch is thrown that way and springs back.
Trait Implementations§
Source§impl Clone for OverscrollStretch
impl Clone for OverscrollStretch
impl Copy for OverscrollStretch
Source§impl Debug for OverscrollStretch
impl Debug for OverscrollStretch
Auto Trait Implementations§
impl Freeze for OverscrollStretch
impl RefUnwindSafe for OverscrollStretch
impl Send for OverscrollStretch
impl Sync for OverscrollStretch
impl Unpin for OverscrollStretch
impl UnsafeUnpin for OverscrollStretch
impl UnwindSafe for OverscrollStretch
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