pub struct GlyphSet {
pub track_vertical: char,
pub track_horizontal: char,
pub arrow_vertical_start: char,
pub arrow_vertical_end: char,
pub arrow_horizontal_start: char,
pub arrow_horizontal_end: char,
pub thumb_vertical_lower: [char; 8],
pub thumb_vertical_upper: [char; 8],
pub thumb_horizontal_left: [char; 8],
pub thumb_horizontal_right: [char; 8],
}Expand description
Glyphs used to render the track, arrows, and thumb.
Arrays use indices 0..=7 to represent 1/8th through full coverage.
Fields§
§track_vertical: charTrack glyph for vertical scrollbars.
track_horizontal: charTrack glyph for horizontal scrollbars.
arrow_vertical_start: charArrow glyph for the start of a vertical scrollbar (top).
arrow_vertical_end: charArrow glyph for the end of a vertical scrollbar (bottom).
arrow_horizontal_start: charArrow glyph for the start of a horizontal scrollbar (left).
arrow_horizontal_end: charArrow glyph for the end of a horizontal scrollbar (right).
thumb_vertical_lower: [char; 8]Thumb glyphs for vertical lower fills (1/8th through full).
thumb_vertical_upper: [char; 8]Thumb glyphs for vertical upper fills (1/8th through full).
thumb_horizontal_left: [char; 8]Thumb glyphs for horizontal left fills (1/8th through full).
thumb_horizontal_right: [char; 8]Thumb glyphs for horizontal right fills (1/8th through full).
Implementations§
Source§impl GlyphSet
impl GlyphSet
Sourcepub const fn symbols_for_legacy_computing() -> GlyphSet
pub const fn symbols_for_legacy_computing() -> GlyphSet
Glyphs that mix standard block elements with legacy supplement glyphs.
Use this to get full 1/8th coverage for upper and right edges that the standard block set lacks; these glyphs come from Symbols for Legacy Computing.
Trait Implementations§
impl Eq for GlyphSet
impl StructuralPartialEq for GlyphSet
Auto Trait Implementations§
impl Freeze for GlyphSet
impl RefUnwindSafe for GlyphSet
impl Send for GlyphSet
impl Sync for GlyphSet
impl Unpin for GlyphSet
impl UnwindSafe for GlyphSet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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