Expand description
Progress bars visualize the progression of an extended computer operation, such as a download, file transfer, or installation.
§Example
use iced::widget::progress_bar;
struct State {
progress: f32,
}
enum Message {
// ...
}
fn view(state: &State) -> Element<'_, Message> {
progress_bar(0.0..=100.0, state.progress).into()
}
Structs§
- Progress
Bar - A bar that displays progress.
- Style
- The appearance of a progress bar.
Traits§
- Catalog
- The theme catalog of a
ProgressBar
.
Functions§
- danger
- The danger style of a
ProgressBar
. - primary
- The primary style of a
ProgressBar
. - secondary
- The secondary style of a
ProgressBar
. - success
- The success style of a
ProgressBar
.
Type Aliases§
- StyleFn
- A styling function for a
ProgressBar
.