Lines Matching refs:cur_pos
412 uint32_t cur_pos = ext->cursor.pos; in lv_textarea_del_char() local
414 if(cur_pos == 0) return; in lv_textarea_del_char()
620 lv_point_t cur_pos; in lv_textarea_set_cursor_pos() local
626 lv_label_get_letter_pos(ext->label, pos, &cur_pos); in lv_textarea_set_cursor_pos()
632 if(lv_obj_get_y(label_par) + cur_pos.y < 0) { in lv_textarea_set_cursor_pos()
633 lv_obj_set_y(label_par, -cur_pos.y + top); in lv_textarea_set_cursor_pos()
637 if(label_cords.y1 + cur_pos.y + font_h + bottom > ta_cords.y2) { in lv_textarea_set_cursor_pos()
638 lv_obj_set_y(label_par, -(cur_pos.y - lv_obj_get_height(ta) + font_h + top + bottom)); in lv_textarea_set_cursor_pos()
641 if(lv_obj_get_x(label_par) + cur_pos.x < font_h) { in lv_textarea_set_cursor_pos()
642 lv_obj_set_x(label_par, -cur_pos.x + font_h); in lv_textarea_set_cursor_pos()
648 if(label_cords.x1 + cur_pos.x + font_h + right > ta_cords.x2) { in lv_textarea_set_cursor_pos()
649 lv_obj_set_x(label_par, -(cur_pos.x - lv_obj_get_width(ta) + font_h + left + right)); in lv_textarea_set_cursor_pos()
652 ext->cursor.valid_x = cur_pos.x; in lv_textarea_set_cursor_pos()
1720 uint32_t cur_pos = lv_textarea_get_cursor_pos(ta); in refr_cursor_area() local
1724 byte_pos = _lv_txt_encoded_get_byte_id(txt, cur_pos); in refr_cursor_area()
1741 lv_label_get_letter_pos(ext->label, cur_pos, &letter_pos); in refr_cursor_area()