Home
last modified time | relevance | path

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

/lvgl-3.7.0/examples/widgets/slider/
Dlv_example_slider_3.c42 lv_area_t label_area; in slider_event_cb() local
43label_area.x1 = dsc->draw_area->x1 + lv_area_get_width(dsc->draw_area) / 2 - label_size.x / 2; in slider_event_cb()
44 label_area.x2 = label_area.x1 + label_size.x; in slider_event_cb()
45 label_area.y2 = dsc->draw_area->y1 - 10; in slider_event_cb()
46 label_area.y1 = label_area.y2 - label_size.y; in slider_event_cb()
51 lv_draw_label(dsc->draw_ctx, &label_draw_dsc, &label_area, buf, NULL); in slider_event_cb()
Dlv_example_slider_3.py18 label_area = lv.area_t()
19 label_area.x1 = dsc.draw_area.x1 + dsc.draw_area.get_width() // 2 - label_size.x // 2
20 label_area.x2 = label_area.x1 + label_size.x
21 label_area.y2 = dsc.draw_area.y1 - 10
22 label_area.y1 = label_area.y2 - label_size.y
27 dsc.draw_ctx.label(label_draw_dsc, label_area, label_text, None)