pub struct ScrollableContent<'a> { /* private fields */ }Expand description
Scrollable content widget
A scrollable text pane that displays content with optional borders and scroll indicators. Highlights when focused.
Implementations§
Source§impl<'a> ScrollableContent<'a>
impl<'a> ScrollableContent<'a>
Sourcepub fn new(state: &'a ScrollableContentState) -> Self
pub fn new(state: &'a ScrollableContentState) -> Self
Create a new scrollable content widget
Sourcepub fn style(self, style: ScrollableContentStyle) -> Self
pub fn style(self, style: ScrollableContentStyle) -> Self
Set the style
Sourcepub fn inner_area(&self, area: Rect) -> Rect
pub fn inner_area(&self, area: Rect) -> Rect
Calculate the inner area (content area without borders)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ScrollableContent<'a>
impl<'a> RefUnwindSafe for ScrollableContent<'a>
impl<'a> Send for ScrollableContent<'a>
impl<'a> Sync for ScrollableContent<'a>
impl<'a> Unpin for ScrollableContent<'a>
impl<'a> UnwindSafe for ScrollableContent<'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