Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Module Mosaic_ui.Spinner
Animated loading indicator with preset frame sets.
Animated spinner cycling through configurable frame sets.
A spinner cycles through an array of text frames at a fixed interval, rendering the current frame with a configurable foreground color. Animation advances on each tick: elapsed time accumulates and the frame index advances by one or more steps when the interval threshold is reached.
Several built-in frame sets are provided (dots, line, arc, etc.). Custom frame sets can be constructed directly as frame_set records.
Types
type t
The type for animated spinner widgets.
type frame_set = {
frames : string array;
(*
Frames to cycle through.
*)
interval : float;
(*
Time between frames, in milliseconds.
*)
}
The type for animation frame sets. The spinner advances one frame each time interval milliseconds have elapsed.