Skip to main content

Module spinner

Module spinner 

Expand description

Spinner — a circular indeterminate-progress indicator.

Renders four dots orbiting a centre point at constant angular velocity, driven by wall-clock time captured at construction rather than per-frame mutation, so the widget is cheap to keep alive. Opts into Widget::needs_animation_frame while it moves, but steps at the indicator cadence (crate::animation::indicator): it repaints and damages its own box only when its step changes, so a visible spinner presents 30 times a second, not at every refresh.

Structs§

Spinner
SpinnerProps
Something under way whose length is not known: four dots turning. It holds still under reduced motion. Where the share done is known, a progress bar or ring says how far it is.

Constants§

DEFAULT_SIZE_PX
Sized to the concept’s body text (14px line-height ≈ 20px) while leaving the dots large enough for the alpha ramp to read.