Skip to main content

Module progress

Module progress 

Source
Expand description

Determinate progress bars.

Structs§

Colours
Colours of the track and the filled bar.
Progress
A progress bar builder. Convert it into an Element to render.

Enums§

Size
Bar thickness.
Variant
Colour of the filled part of the bar.

Functions§

clamp
Clamps a value into 0.0..=1.0. NaN becomes 0.0.
colours
Resolves the colours of a variant.
percentage
A value from 0.0 to 1.0 as a whole percentage.
progress
Creates a progress bar. value runs from 0.0 to 1.0 and is clamped.
style
The iced progress bar style for a variant.