pub struct ScrollViewRenderProps<'a> {
pub content_height: usize,
pub scroll_offset: usize,
pub is_focused: bool,
pub style: ScrollViewStyle,
pub behavior: ScrollViewBehavior,
pub render_content: &'a mut dyn FnMut(&mut Frame<'_>, Rect, VisibleRange),
}Expand description
Render-only props for ScrollView
Fields§
§content_height: usizeTotal height of the content in lines
scroll_offset: usizeCurrent scroll offset (topmost visible line index)
is_focused: boolWhether this component has focus
style: ScrollViewStyleUnified styling
behavior: ScrollViewBehaviorBehavior configuration
render_content: &'a mut dyn FnMut(&mut Frame<'_>, Rect, VisibleRange)Callback to render visible content
Auto Trait Implementations§
impl<'a> Freeze for ScrollViewRenderProps<'a>
impl<'a> !RefUnwindSafe for ScrollViewRenderProps<'a>
impl<'a> !Send for ScrollViewRenderProps<'a>
impl<'a> !Sync for ScrollViewRenderProps<'a>
impl<'a> Unpin for ScrollViewRenderProps<'a>
impl<'a> UnsafeUnpin for ScrollViewRenderProps<'a>
impl<'a> !UnwindSafe for ScrollViewRenderProps<'a>
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