Skip to main content

Module stepper

Module stepper 

Expand description

Stepper: where a person is in a short sequence of steps (a setup wizard, writing an image, an import).

Each step is a station: a disc and its label, joined by a line. A done step’s disc is filled with the inverted fill and carries a check; the current one is ringed in primary ink with its number and its label is strong; later ones are ringed in tertiary ink. When the stations do not fit the width, the stepper reads “Step 2 of 4” over the current step’s label instead; it never shows a bare “2/4”.

Before the first step starts (current(None)) every station waits. A stepper with Stepper::on_station lets the person go back to a step that is done: those stations take a pointer, focus and assistive technology’s activation.

StepperFace paints the same geometry for immediate-mode callers, and StepperFace::station_rects says where each station is.

Structs§

Stepper
A retained stepper. See the module docs.
StepperFace
Immediate-mode stepper.