Trait unsegen::input::Scrollable [−][src]
pub trait Scrollable { fn scroll_backwards(&mut self) -> OperationResult; fn scroll_forwards(&mut self) -> OperationResult; fn scroll_to_beginning(&mut self) -> OperationResult { ... } fn scroll_to_end(&mut self) -> OperationResult { ... } }
Expand description
Something that can be scrolled. Use in conjunction with ScrollBehavior
to manipulate when
input arrives.
Note that scroll_to_beginning
and scroll_to_end
should be implemented manually if a fast
pass is available and performance is important. By default these functions call
scroll_backwards
and scroll_forwards
respectively until they fail.
Required methods
fn scroll_backwards(&mut self) -> OperationResult
[src]
fn scroll_forwards(&mut self) -> OperationResult
[src]
Provided methods
fn scroll_to_beginning(&mut self) -> OperationResult
[src]
fn scroll_to_end(&mut self) -> OperationResult
[src]
Implementors
impl Scrollable for LogViewer
[src]
impl Scrollable for LogViewer
[src]fn scroll_forwards(&mut self) -> OperationResult
[src]
fn scroll_backwards(&mut self) -> OperationResult
[src]
fn scroll_to_beginning(&mut self) -> OperationResult
[src]
fn scroll_to_end(&mut self) -> OperationResult
[src]
impl Scrollable for PromptLine
[src]
impl Scrollable for PromptLine
[src]fn scroll_forwards(&mut self) -> OperationResult
[src]
fn scroll_backwards(&mut self) -> OperationResult
[src]
fn scroll_to_beginning(&mut self) -> OperationResult
[src]
fn scroll_to_end(&mut self) -> OperationResult
[src]
impl<R: TableRow + 'static> Scrollable for Table<R>
[src]
impl<R: TableRow + 'static> Scrollable for Table<R>
[src]