|
Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
|
Owning scrollbar skin; no callbacks, borrowed views, timers or layout changes. Ends occupy existing track cells, below the thumb in paint priority; their clicks keep ordinary track behavior. Both axes share part colors/attributes through the existing style resolver. FRACTIONAL_BLOCK selects a blank track and eighth-cell placement beneath explicit part overrides. It rejects nonblank tracks, custom thumb shapes/caps, ASCII primitives and non-one-cell coverage glyphs. Missing resolved scrollbar colors use a local dark surface and normal/focused/disabled ink palette; explicit part/segment/control colors keep priority. Other presets retain terminal-default colors. More...
#include <scrollbar_skin.hpp>
Public Member Functions | |
| ~ScrollbarSkin ()=default | |
| Keep checked-library owning transfers fallible. | |
Public Attributes | |
| ScrollbarPattern | pattern {ScrollbarPattern::LEGACY} |
| Built-in glyph source beneath sparse overrides. | |
| bool | ends {} |
| Paint decorative endpoints where the thumb does not cover them. | |
| std::size_t | maxGlyphBytes {DEFAULT_SCROLLBAR_GLYPH_BYTES} |
| Positive UTF-8 byte cap per supplied glyph. | |
| ScrollbarAxisGlyphs | horizontal {} |
| Horizontal track, thumb and optional ends. | |
| ScrollbarAxisGlyphs | vertical {} |
| Vertical track, thumb and optional ends. | |
| std::optional< std::string > | corner {} |
| Intersection glyph; omitted or empty keeps the existing fill. | |
| std::optional< ScrollbarPattern > | trackPattern {} |
| Explicit track source above the umbrella preset. | |
| std::optional< ScrollbarThumbPattern > | thumbPattern {} |
| Explicit thumb source above the umbrella preset. | |
| std::optional< ScrollbarArrowPattern > | arrowPattern {} |
| Explicit arrow source; does not enable arrows. | |
| GlyphSelection | glyphSelection {} |
| Opt-in manual base below independent patterns and literal glyphs. | |
Owning scrollbar skin; no callbacks, borrowed views, timers or layout changes. Ends occupy existing track cells, below the thumb in paint priority; their clicks keep ordinary track behavior. Both axes share part colors/attributes through the existing style resolver. FRACTIONAL_BLOCK selects a blank track and eighth-cell placement beneath explicit part overrides. It rejects nonblank tracks, custom thumb shapes/caps, ASCII primitives and non-one-cell coverage glyphs. Missing resolved scrollbar colors use a local dark surface and normal/focused/disabled ink palette; explicit part/segment/control colors keep priority. Other presets retain terminal-default colors.