pub struct ScrollListState<T> { /* private fields */ }Implementations§
Source§impl<T: Scalar> ScrollListState<T>
impl<T: Scalar> ScrollListState<T>
Sourcepub fn scroll_by(&mut self, amount: T)
pub fn scroll_by(&mut self, amount: T)
replaces the movement in pixels queued for the next build
Sourcepub fn scroll_to(&mut self, index: usize, offset: T)
pub fn scroll_to(&mut self, index: usize, offset: T)
scrolls to a list index and pixel offset
- nearby offsets use exact row measurements
- large offscreen offsets use estimated row extents
Sourcepub fn jump_to(&mut self, index: usize, offset: T)
pub fn jump_to(&mut self, index: usize, offset: T)
jumps immediately to a list index and pixel offset without animation
pub fn stop(&mut self)
pub fn is_moving(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<T> Forget for ScrollListState<T>
impl<T> Freeze for ScrollListState<T>
impl<T> Move for ScrollListState<T>
impl<T> RefUnwindSafe for ScrollListState<T>where
T: RefUnwindSafe,
impl<T> Send for ScrollListState<T>
impl<T> Sync for ScrollListState<T>
impl<T> Unpin for ScrollListState<T>
impl<T> UnsafeUnpin for ScrollListState<T>
impl<T> UnwindSafe for ScrollListState<T>where
T: UnwindSafe,
RawVecInner: UnwindSafe,
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