Home
last modified time | relevance | path

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

/lvgl-3.5.0/demos/widgets/
Dlv_demo_widgets.c1291 lv_point_t text_size; in slider_event_cb() local
1292 lv_txt_get_size(&text_size, buf, font_normal, 0, 0, LV_COORD_MAX, LV_TEXT_FLAG_NONE); in slider_event_cb()
1295 … txt_area.x1 = dsc->draw_area->x1 + lv_area_get_width(dsc->draw_area) / 2 - text_size.x / 2; in slider_event_cb()
1296 txt_area.x2 = txt_area.x1 + text_size.x; in slider_event_cb()
1298 txt_area.y1 = txt_area.y2 - text_size.y; in slider_event_cb()
1400 lv_point_t text_size; in chart_event_cb() local
1401 … lv_txt_get_size(&text_size, buf, font_normal, 0, 0, LV_COORD_MAX, LV_TEXT_FLAG_NONE); in chart_event_cb()
1406 txt_area.y1 = txt_area.y2 - text_size.y; in chart_event_cb()
1409 txt_area.x2 = txt_area.x1 + text_size.x; in chart_event_cb()
1413 txt_area.x1 = txt_area.x2 - text_size.x; in chart_event_cb()
[all …]