Searched refs:text_size (Results 1 – 2 of 2) sorted by relevance
/lvgl-latest/tests/src/test_cases/widgets/ |
D | test_chart.c | 130 lv_point_t text_size; in chart_event_cb() local 131 lv_text_get_size(&text_size, buf, LV_FONT_DEFAULT, 0, 0, LV_COORD_MAX, LV_TEXT_FLAG_NONE); in chart_event_cb() 134 … txt_area.x1 = draw_task->area.x1 + lv_area_get_width(&draw_task->area) / 2 - text_size.x / 2; in chart_event_cb() 135 txt_area.x2 = txt_area.x1 + text_size.x; in chart_event_cb() 137 txt_area.y1 = txt_area.y2 - text_size.y; in chart_event_cb()
|
/lvgl-latest/demos/widgets/ |
D | lv_demo_widgets.c | 1374 lv_point_t text_size; in slider_event_cb() local 1375 lv_text_get_size(&text_size, buf, font_normal, 0, 0, LV_COORD_MAX, LV_TEXT_FLAG_NONE); in slider_event_cb() 1380 … txt_area.x1 = draw_task_area.x1 + lv_area_get_width(&draw_task_area) / 2 - text_size.x / 2; in slider_event_cb() 1381 txt_area.x2 = txt_area.x1 + text_size.x; in slider_event_cb() 1383 txt_area.y1 = txt_area.y2 - text_size.y; in slider_event_cb() 1510 lv_point_t text_size; in chart_event_cb() local 1511 lv_text_get_size(&text_size, buf, font_normal, 0, 0, LV_COORD_MAX, LV_TEXT_FLAG_NONE); in chart_event_cb() 1517 txt_area.y1 = txt_area.y2 - text_size.y; in chart_event_cb() 1518 … txt_area.x1 = draw_task_area.x1 + (lv_area_get_width(&draw_task_area) - text_size.x) / 2; in chart_event_cb() 1519 txt_area.x2 = txt_area.x1 + text_size.x; in chart_event_cb()
|