Searched refs:txt_size (Results 1 – 6 of 6) sorted by relevance
/lvgl-latest/examples/widgets/bar/ |
D | lv_example_bar_6.c | 23 lv_point_t txt_size; in event_cb() local 24 …lv_txt_get_size(&txt_size, buf, label_dsc.font, label_dsc.letter_space, label_dsc.line_space, LV_C… in event_cb() 29 if(lv_area_get_width(dsc->draw_area) > txt_size.x + 20) { in event_cb() 31 txt_area.x1 = txt_area.x2 - txt_size.x + 1; in event_cb() 37 txt_area.x2 = txt_area.x1 + txt_size.x - 1; in event_cb() 41 txt_area.y1 = dsc->draw_area->y1 + (lv_area_get_height(dsc->draw_area) - txt_size.y) / 2; in event_cb() 42 txt_area.y2 = txt_area.y1 + txt_size.y - 1; in event_cb()
|
D | test.py | 19 txt_size = lv.point_t() 20 …lv.txt_get_size(txt_size, value_txt, label_dsc.font, label_dsc.letter_space, label_dsc.line_space,… 24 if dsc.draw_area.get_width() > txt_size.x + 20: 26 txt_area.x1 = txt_area.x2 - txt_size.x + 1 31 txt_area.x2 = txt_area.x1 + txt_size.x - 1 34 txt_area.y1 = dsc.draw_area.y1 + (dsc.draw_area.get_height() - txt_size.y) // 2 35 txt_area.y2 = txt_area.y1 + txt_size.y - 1
|
D | lv_example_bar_6.py | 16 txt_size = lv.point_t() 17 …lv.txt_get_size(txt_size, value_txt, label_dsc.font, label_dsc.letter_space, label_dsc.line_space,… 21 if dsc.draw_area.get_width() > txt_size.x + 20: 23 txt_area.x1 = txt_area.x2 - txt_size.x + 1 28 txt_area.x2 = txt_area.x1 + txt_size.x - 1 31 txt_area.y1 = dsc.draw_area.y1 + (dsc.draw_area.get_height() - txt_size.y) // 2 32 txt_area.y2 = txt_area.y1 + txt_size.y - 1
|
/lvgl-latest/src/widgets/ |
D | lv_checkbox.c | 170 lv_point_t txt_size; in lv_checkbox_event() local 171 …lv_txt_get_size(&txt_size, cb->txt, font, letter_space, line_space, LV_COORD_MAX, LV_TEXT_FLAG_NON… in lv_checkbox_event() 182 p->x = marker_size.x + txt_size.x + bg_colp; in lv_checkbox_event() 183 p->y = LV_MAX(marker_size.y, txt_size.y); in lv_checkbox_event() 248 lv_point_t txt_size; in lv_checkbox_draw() local 249 …lv_txt_get_size(&txt_size, cb->txt, font, letter_space, line_space, LV_COORD_MAX, LV_TEXT_FLAG_NON… in lv_checkbox_draw() 258 txt_area.x2 = txt_area.x1 + txt_size.x; in lv_checkbox_draw() 260 txt_area.y2 = txt_area.y1 + txt_size.y; in lv_checkbox_draw()
|
D | lv_table.c | 679 lv_point_t txt_size; in draw_main() local 833 lv_txt_get_size(&txt_size, table->cell_data[cell]->txt, label_dsc_def.font, in draw_main() 839 txt_area.y1 = cell_area.y1 + h_row / 2 - txt_size.y / 2; in draw_main() 840 txt_area.y2 = cell_area.y1 + h_row / 2 + txt_size.y / 2; in draw_main() 973 lv_point_t txt_size; in get_row_height() local 976 lv_txt_get_size(&txt_size, table->cell_data[cell]->txt, font, in get_row_height() 979 h_max = LV_MAX(txt_size.y + cell_top + cell_bottom, h_max); in get_row_height()
|
D | lv_btnmatrix.c | 824 lv_point_t txt_size; in draw_main() local 825 lv_txt_get_size(&txt_size, txt, font, letter_space, in draw_main() 828 btn_area.x1 += (lv_area_get_width(&btn_area) - txt_size.x) / 2; in draw_main() 829 btn_area.y1 += (lv_area_get_height(&btn_area) - txt_size.y) / 2; in draw_main() 830 btn_area.x2 = btn_area.x1 + txt_size.x; in draw_main() 831 btn_area.y2 = btn_area.y1 + txt_size.y; in draw_main()
|