Home
last modified time | relevance | path

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

/lvgl-3.4.0/demos/widgets/
Dlv_demo_widgets.c1268 lv_point_t text_size; in slider_event_cb() local
1269 lv_txt_get_size(&text_size, buf, font_normal, 0, 0, LV_COORD_MAX, LV_TEXT_FLAG_NONE); in slider_event_cb()
1272 … txt_area.x1 = dsc->draw_area->x1 + lv_area_get_width(dsc->draw_area) / 2 - text_size.x / 2; in slider_event_cb()
1273 txt_area.x2 = txt_area.x1 + text_size.x; in slider_event_cb()
1275 txt_area.y1 = txt_area.y2 - text_size.y; in slider_event_cb()
1373 lv_point_t text_size; in chart_event_cb() local
1374 … lv_txt_get_size(&text_size, buf, font_normal, 0, 0, LV_COORD_MAX, LV_TEXT_FLAG_NONE); in chart_event_cb()
1379 txt_area.y1 = txt_area.y2 - text_size.y; in chart_event_cb()
1382 txt_area.x2 = txt_area.x1 + text_size.x; in chart_event_cb()
1385 txt_area.x1 = txt_area.x2 - text_size.x; in chart_event_cb()
[all …]