pub struct ScrollGlows(/* private fields */);Expand description
The four glows of one scrollable region.
All four are always present and cost nothing while idle, which spares every
caller an Option and a lookup for the common case of a list that is simply
being scrolled.
Implementations§
Source§impl ScrollGlows
impl ScrollGlows
Sourcepub fn edge(&self, edge: GlowEdge) -> &OverscrollGlow
pub fn edge(&self, edge: GlowEdge) -> &OverscrollGlow
The glow on edge.
Sourcepub fn edge_mut(&mut self, edge: GlowEdge) -> &mut OverscrollGlow
pub fn edge_mut(&mut self, edge: GlowEdge) -> &mut OverscrollGlow
The glow on edge, to drive.
Sourcepub fn advance(&mut self, dt: f32) -> bool
pub fn advance(&mut self, dt: f32) -> bool
Advances all four. Returns true while any is still animating.
Sourcepub fn scroll_end(&mut self)
pub fn scroll_end(&mut self)
Tells every edge the gesture is over.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScrollGlows
impl RefUnwindSafe for ScrollGlows
impl Send for ScrollGlows
impl Sync for ScrollGlows
impl Unpin for ScrollGlows
impl UnsafeUnpin for ScrollGlows
impl UnwindSafe for ScrollGlows
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