pub struct ScrollbarStyle {
pub orientation: ScrollbarOrientation,
pub track_symbol: Option<String>,
pub thumb_symbol: String,
pub begin_symbol: Option<String>,
pub end_symbol: Option<String>,
pub track_style: Style,
pub thumb_style: Style,
}Expand description
Visual styling for render_scrollbar. Start from
ScrollbarStyle::default (a right-hand vertical bar with a │ track and
a solid █ thumb, both unstyled) and override what you want — most callers
only set track_style/thumb_style to their theme’s dim/accent colours.
Fields§
§orientation: ScrollbarOrientationWhich edge the bar sits on and which way it runs.
track_symbol: Option<String>The glyph drawn along the unfilled track (None leaves the cells as-is).
thumb_symbol: StringThe glyph drawn for the thumb (the draggable filled portion).
begin_symbol: Option<String>Optional cap glyph at the track’s start (arrow/corner); usually None.
end_symbol: Option<String>Optional cap glyph at the track’s end; usually None.
track_style: StyleStyle (typically a dim foreground colour) for the track.
thumb_style: StyleStyle (typically an accent foreground colour) for the thumb.
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 (const: unstable) · 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 UnsafeUnpin 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