pub struct ScrollView { /* private fields */ }Expand description
A scrollable viewport container
Handles scroll behavior (keyboard, mouse wheel) and renders scrollbar.
Content rendering is delegated to the render_content callback.
For simple cases with pre-rendered lines, use LinesScroller.
Implementations§
Source§impl ScrollView
impl ScrollView
Trait Implementations§
Source§impl<A> Component<A> for ScrollView
impl<A> Component<A> for ScrollView
Source§type Props<'a> = ScrollViewProps<'a, A>
type Props<'a> = ScrollViewProps<'a, A>
Data required to render the component (read-only)
Source§fn handle_event(
&mut self,
event: &EventKind,
props: Self::Props<'_>,
) -> impl IntoIterator<Item = A>
fn handle_event( &mut self, event: &EventKind, props: Self::Props<'_>, ) -> impl IntoIterator<Item = A>
Handle an event and return actions to dispatch Read more
Source§impl Default for ScrollView
impl Default for ScrollView
Source§fn default() -> ScrollView
fn default() -> ScrollView
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScrollView
impl RefUnwindSafe for ScrollView
impl Send for ScrollView
impl Sync for ScrollView
impl Unpin for ScrollView
impl UnsafeUnpin for ScrollView
impl UnwindSafe for ScrollView
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