mirui 0.10.2

A lightweight, no_std ECS-driven UI framework for embedded, desktop, and WebAssembly
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// Progress bar component
pub struct ProgressBar {
    pub value: f32, // 0.0 ~ 1.0
    pub track_color: crate::types::Color,
    pub fill_color: crate::types::Color,
}

impl ProgressBar {
    pub fn new(fill: crate::types::Color, track: crate::types::Color) -> Self {
        Self {
            value: 0.0,
            track_color: track,
            fill_color: fill,
        }
    }
}