Lines Matching refs:cur_pos
378 uint16_t cur_pos = ext->cursor.pos; in lv_ta_del_char() local
380 if(cur_pos == 0) return; in lv_ta_del_char()
552 lv_point_t cur_pos; in lv_ta_set_cursor_pos() local
557 lv_label_get_letter_pos(ext->label, pos, &cur_pos); in lv_ta_set_cursor_pos()
563 if(lv_obj_get_y(label_par) + cur_pos.y < 0) { in lv_ta_set_cursor_pos()
564 lv_obj_set_y(label_par, -cur_pos.y + style->body.padding.top); in lv_ta_set_cursor_pos()
568 if(label_cords.y1 + cur_pos.y + font_h + style->body.padding.bottom > ta_cords.y2) { in lv_ta_set_cursor_pos()
569 … lv_obj_set_y(label_par, -(cur_pos.y - lv_obj_get_height(ta) + font_h + style->body.padding.top + in lv_ta_set_cursor_pos()
573 if(lv_obj_get_x(label_par) + cur_pos.x < font_h) { in lv_ta_set_cursor_pos()
574 lv_obj_set_x(label_par, -cur_pos.x + font_h); in lv_ta_set_cursor_pos()
578 if(label_cords.x1 + cur_pos.x + font_h + style->body.padding.right > ta_cords.x2) { in lv_ta_set_cursor_pos()
579 … lv_obj_set_x(label_par, -(cur_pos.x - lv_obj_get_width(ta) + font_h + style->body.padding.left + in lv_ta_set_cursor_pos()
583 ext->cursor.valid_x = cur_pos.x; in lv_ta_set_cursor_pos()
1621 uint16_t cur_pos = lv_ta_get_cursor_pos(ta); in refr_cursor_area() local
1625 byte_pos = lv_txt_encoded_get_byte_id(txt, cur_pos); in refr_cursor_area()
1641 lv_label_get_letter_pos(ext->label, cur_pos, &letter_pos); in refr_cursor_area()