Reference
Module - Progress Bar
Module-level reference for iced::widget::progress_bar.
Module - Progress Bar
Authoritative source: ref/doc/iced/widget/progress_bar/index.html.
# Rustdoc description
Progress bars visualize the progression of an extended computer operation, such as a download, file transfer, or installation.
# When to use
Use this module when you need the widget family and related style/state APIs grouped under iced::widget::progress_bar.
# Example References
- ref/examples/progress_bar/src/main.rs
- ref/examples/changelog/src/main.rs
- ref/examples/download_progress/src/main.rs
- ref/examples/scrollable/src/main.rs
- ref/examples/styling/src/main.rs
# Inline Examples (from rustdoc)
rust
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() }
# Related
# Use this when...
- You need module-level APIs beyond the basic constructor call.
- You want family-specific style/state traits and helper types.
- You are building reusable widget abstractions.
# Minimal example
rust
// Start with the constructor from this module family in `view`. // Then move to module APIs for deeper customization.
# How it works
Module docs explain the namespace that groups constructors, types, and related traits. In everyday app code, this helps you discover advanced options after basic usage works.
# Common patterns
rust
// Message flow pattern: // widget interaction -> Message -> update -> state change -> rerender
# Gotchas / tips
- Check this page together with its family page for complete context.
- Verify trait bounds and associated types in rustdoc when custom styling fails.
- Keep module imports explicit while learning.