Module cosmic::iced_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§

Traits§

Functions§

Type Aliases§