cosmic/widget/progress_bar/
mod.rs

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