pub struct ScrollbarStyle {
pub thumb: Style,
pub track: Style,
pub begin: Style,
pub end: Style,
pub thumb_symbol: Option<&'static str>,
pub track_symbol: Option<&'static str>,
pub begin_symbol: Option<&'static str>,
pub end_symbol: Option<&'static str>,
}Expand description
Scrollbar styling configuration
Fields§
§thumb: StyleStyle for the scrollbar thumb
track: StyleStyle for the scrollbar track
begin: StyleStyle for the scrollbar begin symbol
end: StyleStyle for the scrollbar end symbol
thumb_symbol: Option<&'static str>Override the thumb symbol (None = ratatui default)
track_symbol: Option<&'static str>Override the track symbol (None = no track)
begin_symbol: Option<&'static str>Override the begin symbol (None = no symbol)
end_symbol: Option<&'static str>Override the end symbol (None = no symbol)
Implementations§
Source§impl ScrollbarStyle
impl ScrollbarStyle
Sourcepub fn build(&self, orientation: ScrollbarOrientation) -> Scrollbar<'static>
pub fn build(&self, orientation: ScrollbarOrientation) -> Scrollbar<'static>
Build a ratatui Scrollbar widget from this style
Trait Implementations§
Source§impl Clone for ScrollbarStyle
impl Clone for ScrollbarStyle
Source§fn clone(&self) -> ScrollbarStyle
fn clone(&self) -> ScrollbarStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScrollbarStyle
impl Debug for ScrollbarStyle
Auto Trait Implementations§
impl Freeze for ScrollbarStyle
impl RefUnwindSafe for ScrollbarStyle
impl Send for ScrollbarStyle
impl Sync for ScrollbarStyle
impl Unpin for ScrollbarStyle
impl UnwindSafe for ScrollbarStyle
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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