Lines Matching refs:pos

139     lv_label_ins_text(ta->label, ta->cursor.pos, letter_buf); /*Insert the character*/  in lv_textarea_add_char()
149 _lv_txt_ins(ta->pwd_tmp, ta->cursor.pos, (const char *)letter_buf); in lv_textarea_add_char()
190 lv_label_ins_text(ta->label, ta->cursor.pos, txt); in lv_textarea_add_text()
199 _lv_txt_ins(ta->pwd_tmp, ta->cursor.pos, txt); in lv_textarea_add_text()
216 uint32_t cur_pos = ta->cursor.pos; in lv_textarea_del_char()
228 _lv_txt_cut(label_txt, ta->cursor.pos - 1, 1); in lv_textarea_del_char()
241 _lv_txt_cut(ta->pwd_tmp, ta->cursor.pos - 1, 1); in lv_textarea_del_char()
249 lv_textarea_set_cursor_pos(obj, ta->cursor.pos - 1); in lv_textarea_del_char()
344 void lv_textarea_set_cursor_pos(lv_obj_t * obj, int32_t pos) in lv_textarea_set_cursor_pos() argument
349 if((uint32_t)ta->cursor.pos == (uint32_t)pos) return; in lv_textarea_set_cursor_pos()
353 if(pos < 0) pos = len + pos; in lv_textarea_set_cursor_pos()
355 if(pos > (int32_t)len || pos == LV_TEXTAREA_CURSOR_LAST) pos = len; in lv_textarea_set_cursor_pos()
357 ta->cursor.pos = pos; in lv_textarea_set_cursor_pos()
364 lv_label_get_letter_pos(ta->label, pos, &cur_pos); in lv_textarea_set_cursor_pos()
604 return ta->cursor.pos; in lv_textarea_get_cursor_pos()
753 lv_point_t pos; in lv_textarea_cursor_down() local
756 lv_label_get_letter_pos(ta->label, lv_textarea_get_cursor_pos(obj), &pos); in lv_textarea_cursor_down()
763 pos.y += font_h + line_space + 1; in lv_textarea_cursor_down()
764 pos.x = ta->cursor.valid_x; in lv_textarea_cursor_down()
767 if(pos.y < lv_obj_get_height(ta->label)) { in lv_textarea_cursor_down()
769 uint32_t new_cur_pos = lv_label_get_letter_on(ta->label, &pos); in lv_textarea_cursor_down()
782 lv_point_t pos; in lv_textarea_cursor_up() local
785 lv_label_get_letter_pos(ta->label, lv_textarea_get_cursor_pos(obj), &pos); in lv_textarea_cursor_up()
791 pos.y -= font_h + line_space - 1; in lv_textarea_cursor_up()
792 pos.x = ta->cursor.valid_x; in lv_textarea_cursor_up()
795 uint32_t new_cur_pos = lv_label_get_letter_on(ta->label, &pos); in lv_textarea_cursor_up()
820 ta->cursor.pos = 1; in lv_textarea_constructor()