Searched refs:meter1 (Results 1 – 1 of 1) sorted by relevance
/lvgl-3.4.0/demos/widgets/ |
D | lv_demo_widgets.c | 67 static lv_obj_t * meter1; variable 642 meter1 = create_meter_box(parent, "Monthly Target", "Revenue: 63%", "Sales: 44%", "Costs: 58%"); in analytics_create() 643 lv_obj_add_flag(lv_obj_get_parent(meter1), LV_OBJ_FLAG_FLEX_IN_NEW_TRACK); in analytics_create() 644 scale = lv_meter_add_scale(meter1); in analytics_create() 645 lv_meter_set_scale_range(meter1, scale, 0, 100, 270, 90); in analytics_create() 646 lv_meter_set_scale_ticks(meter1, scale, 0, 0, 0, lv_color_black()); in analytics_create() 653 indic = lv_meter_add_arc(meter1, scale, 15, lv_palette_main(LV_PALETTE_BLUE), 0); in analytics_create() 660 indic = lv_meter_add_arc(meter1, scale, 15, lv_palette_main(LV_PALETTE_RED), -20); in analytics_create() 668 indic = lv_meter_add_arc(meter1, scale, 15, lv_palette_main(LV_PALETTE_GREEN), -40); in analytics_create() 758 lv_obj_set_size(meter1, 200, 200); in analytics_create() [all …]
|