pub struct ScrollbarConfig {
pub width: u16,
pub track_char: char,
pub thumb_char: char,
pub track_style: Style,
pub thumb_style: Style,
pub percentage_style: Style,
pub min_thumb_height: u16,
}Available on crate feature
markdown-preview only.Expand description
Configuration for scrollbar appearance.
Fields§
§width: u16Width of the scrollbar in characters.
track_char: charCharacter used for the track (background).
thumb_char: charCharacter used for the thumb (scrollable indicator).
track_style: StyleStyle for the track.
thumb_style: StyleStyle for the thumb.
percentage_style: StyleStyle for the percentage text.
min_thumb_height: u16Minimum height for the thumb in characters.
Trait Implementations§
Source§impl Clone for ScrollbarConfig
impl Clone for ScrollbarConfig
Source§fn clone(&self) -> ScrollbarConfig
fn clone(&self) -> ScrollbarConfig
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 ScrollbarConfig
impl Debug for ScrollbarConfig
Source§impl Default for ScrollbarConfig
impl Default for ScrollbarConfig
Source§fn default() -> ScrollbarConfig
fn default() -> ScrollbarConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScrollbarConfig
impl RefUnwindSafe for ScrollbarConfig
impl Send for ScrollbarConfig
impl Sync for ScrollbarConfig
impl Unpin for ScrollbarConfig
impl UnsafeUnpin for ScrollbarConfig
impl UnwindSafe for ScrollbarConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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