pub struct ScrollManager;Expand description
Scroll manager - handles scroll operations across all panels
Implementations§
Source§impl ScrollManager
impl ScrollManager
Sourcepub fn scroll_up(
ui: &mut UiState,
navigation: &mut NavigationState,
amount: usize,
)
pub fn scroll_up( ui: &mut UiState, navigation: &mut NavigationState, amount: usize, )
Scroll the active panel up
Sourcepub fn scroll_down(
ui: &mut UiState,
navigation: &mut NavigationState,
amount: usize,
visible_count: usize,
)
pub fn scroll_down( ui: &mut UiState, navigation: &mut NavigationState, amount: usize, visible_count: usize, )
Scroll the active panel down
Sourcepub fn move_top(ui: &mut UiState, navigation: &mut NavigationState)
pub fn move_top(ui: &mut UiState, navigation: &mut NavigationState)
Jump to top of active panel
Sourcepub fn move_bottom(
ui: &mut UiState,
navigation: &mut NavigationState,
visible_count: usize,
)
pub fn move_bottom( ui: &mut UiState, navigation: &mut NavigationState, visible_count: usize, )
Jump to bottom of active panel
Sourcepub fn help_scroll_up(ui: &mut UiState)
pub fn help_scroll_up(ui: &mut UiState)
Scroll help modal up
Sourcepub fn help_scroll_down(ui: &mut UiState)
pub fn help_scroll_down(ui: &mut UiState)
Scroll help modal down
Sourcepub fn help_jump_top(ui: &mut UiState)
pub fn help_jump_top(ui: &mut UiState)
Jump to top of help modal
Sourcepub fn help_jump_bottom(ui: &mut UiState)
pub fn help_jump_bottom(ui: &mut UiState)
Jump to bottom of help modal
Auto Trait Implementations§
impl Freeze for ScrollManager
impl RefUnwindSafe for ScrollManager
impl Send for ScrollManager
impl Sync for ScrollManager
impl Unpin for ScrollManager
impl UnsafeUnpin for ScrollManager
impl UnwindSafe for ScrollManager
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> 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 more