cosmic/widget/progress_bar/
mod.rs

1mod animation;
2pub mod circular;
3pub mod linear;
4pub mod style;
5
6/// A spinner / throbber widget that can be used to indicate that some operation is in progress.
7pub fn indeterminate_circular() -> circular::Circular<crate::Theme> {
8    circular::Circular::new()
9}
10
11/// A linear throbber widget that can be used to indicate that some operation is in progress.
12pub fn indeterminate_linear() -> linear::Linear<crate::Theme> {
13    linear::Linear::new()
14}
15
16/// A circular progress spinner widget that can be used to indicate the progress of some operation.
17pub fn determinate_circular(progress: f32) -> circular::Circular<crate::Theme> {
18    circular::Circular::new().progress(progress)
19}
20
21/// A linear progress bar widget that can be used to indicate the progress of some operation.
22pub fn determinate_linear(progress: f32) -> linear::Linear<crate::Theme> {
23    linear::Linear::new().progress(progress)
24}