Home
last modified time | relevance | path

Searched refs:scale_area (Results 1 – 1 of 1) sorted by relevance

/lvgl-3.7.0/src/extra/widgets/meter/
Dlv_meter.c29 static void draw_arcs(lv_obj_t * obj, lv_draw_ctx_t * draw_ctx, const lv_area_t * scale_area);
30 …void draw_ticks_and_labels(lv_obj_t * obj, lv_draw_ctx_t * draw_ctx, const lv_area_t * scale_area);
31 static void draw_needles(lv_obj_t * obj, lv_draw_ctx_t * draw_ctx, const lv_area_t * scale_area);
300 lv_area_t scale_area; in lv_meter_event() local
301 lv_obj_get_content_coords(obj, &scale_area); in lv_meter_event()
303 draw_arcs(obj, draw_ctx, &scale_area); in lv_meter_event()
304 draw_ticks_and_labels(obj, draw_ctx, &scale_area); in lv_meter_event()
305 draw_needles(obj, draw_ctx, &scale_area); in lv_meter_event()
307 lv_coord_t r_edge = lv_area_get_width(&scale_area) / 2; in lv_meter_event()
309 scale_center.x = scale_area.x1 + r_edge; in lv_meter_event()
[all …]