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

Owning single-row indicator configuration; no thread or timer is created by this value. More...

#include <spinner.hpp>

Public Member Functions

 ~SpinnerOptions ()=default
 Preserve fallible owning copies, including MSVC Debug iterator proxy allocations.

Public Attributes

SpinnerPreset preset {SpinnerPreset::DOTS}
 Sequence used when frames is empty.
std::string frames = std::string(0, '\0')
 Custom UTF-8 frames separated by LF; no empty frames.
SchedulerTime interval {100}
 Positive monotonic milliseconds between frames.
SpinnerDirection direction {SpinnerDirection::FORWARD}
 Finite sequence traversal order.
LayoutAlign alignment {LayoutAlign::START}
 START/CENTER/END alignment of indicator and label.
bool active {true}
 False pauses animation without polling.
bool reducedMotion {}
 True selects static frame zero without a timer.
TextValue label {""}
 Owning label resolved before widget publication.
std::size_t maxFrames {64}
 Positive maximum complete frame count.
std::size_t maxFrameBytes {4096}
 Positive complete sequence source-byte budget.
std::size_t maxFrameCells {64}
 Positive maximum cells per frame.
std::size_t maxPaintCells {16384}
 Positive allocated-area paint budget.

Detailed Description

Owning single-row indicator configuration; no thread or timer is created by this value.


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