Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::ScrollBarOptions Struct Reference

Owning standalone bar settings, validated before mounting or replacement. No callbacks, tree identity, borrowed storage, timers or terminal resources are retained. More...

#include <scroll_options.hpp>

Public Attributes

double wheelStep {3}
 Positive finite logical cells per decoded wheel event.
std::uint64_t keyStep {1}
 Positive integral logical cells per arrow event.
std::uint64_t pageOverlap {1}
 Shared cells between pages; values above viewport are supported.
std::int32_t minimumThumb {1}
 Positive minimum thumb cells, capped by the actual track.
PrimitiveGlyphs glyphs {PrimitiveGlyphs::UNICODE}
 One-cell glyph mode with existing ASCII fallback.
std::size_t maxPaintCells {16384}
 Positive total track paint-work limit.
bool focusable {true}
 Whether the standalone bar participates in Tab traversal.
bool readOnly {}
 Reject user offset changes; checked programmatic commands remain possible.
bool arrows {}
 Reserve functional end buttons when the actual channel has at least three cells.
std::uint64_t arrowDelay {350}
 Positive milliseconds before the first held-arrow repeat.
std::uint64_t arrowRepeat {60}
 Positive milliseconds between held-arrow steps; no catch-up burst.
std::uint16_t smoothDurationMs {120}
 Fractional input transition duration; zero keeps immediate movement.

Detailed Description

Owning standalone bar settings, validated before mounting or replacement. No callbacks, tree identity, borrowed storage, timers or terminal resources are retained.


The documentation for this struct was generated from the following file: