Lines Matching refs:x

49     static void lv_label_set_offset_x(lv_obj_t * label, lv_coord_t x);
107 ext->offset.x = 0; in lv_label_create()
367 ext->offset.x = 0; in lv_label_set_long_mode()
581 pos->x = 0; in lv_label_get_letter_pos()
584 pos->x = lv_obj_get_width(label); in lv_label_get_letter_pos()
587 pos->x = lv_obj_get_width(label) / 2; in lv_label_get_letter_pos()
661 lv_coord_t x = _lv_txt_get_width(bidi_txt, visual_byte_pos, font, letter_space, flag); in lv_label_get_letter_pos() local
662 if(char_id != line_start) x += letter_space; in lv_label_get_letter_pos()
667 x += lv_area_get_width(&txt_coords) / 2 - line_w / 2; in lv_label_get_letter_pos()
674 x += lv_area_get_width(&txt_coords) - line_w; in lv_label_get_letter_pos()
676 pos->x = x; in lv_label_get_letter_pos()
697 pos.x = pos_in->x - lv_obj_get_style_pad_left(label, LV_LABEL_PART_MAIN); in lv_label_get_letter_on()
752 lv_coord_t x = 0; in lv_label_get_letter_on() local
756 x += lv_area_get_width(&txt_coords) / 2 - line_w / 2; in lv_label_get_letter_on()
761 x += lv_area_get_width(&txt_coords) - line_w; in lv_label_get_letter_on()
787 … if(pos.x < x + gw || i + line_start == new_line_start || txt[i_act + line_start] == '\0') { in lv_label_get_letter_on()
791 x += gw; in lv_label_get_letter_on()
792 x += letter_space; in lv_label_get_letter_on()
896 lv_coord_t x = 0; in lv_label_is_char_under_pos() local
901 x += lv_area_get_width(&txt_coords) / 2 - line_w / 2; in lv_label_is_char_under_pos()
906 x += lv_area_get_width(&txt_coords) - line_w; in lv_label_is_char_under_pos()
931 last_x = x; in lv_label_is_char_under_pos()
932 x += lv_font_get_glyph_width(font, letter, letter_next); in lv_label_is_char_under_pos()
933 if(pos->x < x) { in lv_label_is_char_under_pos()
937 x += letter_space; in lv_label_is_char_under_pos()
943 return (pos->x >= (last_x - letter_space) && pos->x <= (last_x + max_diff)); in lv_label_is_char_under_pos()
1093 label_draw_dsc.ofs_x = ext->offset.x; in lv_label_design()
1105 if(size.x > lv_area_get_width(&txt_coords)) { in lv_label_design()
1128 if(size.x > lv_area_get_width(&txt_coords)) { in lv_label_design()
1129 label_draw_dsc.ofs_x = ext->offset.x + size.x + in lv_label_design()
1138 label_draw_dsc.ofs_x = ext->offset.x; in lv_label_design()
1239 …size.x += lv_obj_get_style_pad_left(label, LV_LABEL_PART_MAIN) + lv_obj_get_style_pad_right(label,… in lv_label_refr_text()
1241 lv_obj_set_size(label, size.x, size.y); in lv_label_refr_text()
1256 if(size.x > lv_area_get_width(&txt_coords)) { in lv_label_refr_text()
1257 lv_anim_set_values(&a, 0, lv_area_get_width(&txt_coords) - size.x); in lv_label_refr_text()
1288 ext->offset.x = 0; in lv_label_refr_text()
1335 if(size.x > lv_area_get_width(&txt_coords)) { in lv_label_refr_text()
1336 …lv_anim_set_values(&a, 0, -size.x - lv_font_get_glyph_width(font, ' ', ' ') * LV_LABEL_WAIT_CHAR_C… in lv_label_refr_text()
1353 ext->offset.x = 0; in lv_label_refr_text()
1386 p.x = lv_area_get_width(&txt_coords) - in lv_label_refr_text()
1457 static void lv_label_set_offset_x(lv_obj_t * label, lv_coord_t x) in lv_label_set_offset_x() argument
1460 ext->offset.x = x; in lv_label_set_offset_x()