Module cosmic::widget::progress_bar
source · 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§
- A bar that displays progress.
- The appearance of a progress bar.
Traits§
- The theme catalog of a
ProgressBar
.
Functions§
- The danger style of a
ProgressBar
. - The primary style of a
ProgressBar
. - The secondary style of a
ProgressBar
. - The success style of a
ProgressBar
.
Type Aliases§
- A styling function for a
ProgressBar
.