lvgl 0.6.2

LVGL bindings for Rust. A powerful and easy-to-use embedded GUI with many widgets, advanced visual effects (opacity, antialiasing, animations) and low memory requirements (16K RAM, 64K Flash).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
pub enum MeterPart {
    Arc,
    Needle,
    Tick,
}

impl From<MeterPart> for u8 {
    fn from(part: MeterPart) -> Self {
        match part {
            MeterPart::Arc => lvgl_sys::lv_meter_draw_part_type_t_LV_METER_DRAW_PART_ARC as u8,
            MeterPart::Needle => {
                lvgl_sys::lv_meter_draw_part_type_t_LV_METER_DRAW_PART_NEEDLE_LINE as u8
            }
            MeterPart::Tick => lvgl_sys::lv_meter_draw_part_type_t_LV_METER_DRAW_PART_TICK as u8,
        }
    }
}