Home
last modified time | relevance | path

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

/lvgl-3.7.0/examples/widgets/table/
Dlv_example_table_2.c19 lv_area_t sw_area; in draw_event_cb() local
20 sw_area.x1 = dsc->draw_area->x2 - 50; in draw_event_cb()
21 sw_area.x2 = sw_area.x1 + 40; in draw_event_cb()
22 sw_area.y1 = dsc->draw_area->y1 + lv_area_get_height(dsc->draw_area) / 2 - 10; in draw_event_cb()
23 sw_area.y2 = sw_area.y1 + 20; in draw_event_cb()
24 lv_draw_rect(dsc->draw_ctx, &rect_dsc, &sw_area); in draw_event_cb()
28 sw_area.x2 -= 2; in draw_event_cb()
29 sw_area.x1 = sw_area.x2 - 16; in draw_event_cb()
32 sw_area.x1 += 2; in draw_event_cb()
33 sw_area.x2 = sw_area.x1 + 16; in draw_event_cb()
[all …]
Dlv_example_table_2.py23 sw_area = lv.area_t()
24 sw_area.x1 = dsc.draw_area.x2 - 50
25 sw_area.x2 = sw_area.x1 + 40
26 sw_area.y1 = dsc.draw_area.y1 + dsc.draw_area.get_height() // 2 - 10
27 sw_area.y2 = sw_area.y1 + 20
28 dsc.draw_ctx.rect(rect_dsc, sw_area)
33 sw_area.x2 -= 2
34 sw_area.x1 = sw_area.x2 - 16
36 sw_area.x1 += 2
37 sw_area.x2 = sw_area.x1 + 16
[all …]