Lines Matching refs:ta
104 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_add_char() local
106 if(ta->one_line && (c == '\n' || c == '\r')) { in lv_textarea_add_char()
131 if(ta->pwd_mode) pwd_char_hider(obj); /*Make sure all the current text contains only '*'*/ in lv_textarea_add_char()
134 if(ta->placeholder_txt) { in lv_textarea_add_char()
135 const char * txt = lv_label_get_text(ta->label); in lv_textarea_add_char()
139 lv_label_ins_text(ta->label, ta->cursor.pos, letter_buf); /*Insert the character*/ in lv_textarea_add_char()
142 if(ta->pwd_mode) { in lv_textarea_add_char()
144 size_t realloc_size = strlen(ta->pwd_tmp) + strlen(letter_buf) + 1; in lv_textarea_add_char()
145 ta->pwd_tmp = lv_mem_realloc(ta->pwd_tmp, realloc_size); in lv_textarea_add_char()
146 LV_ASSERT_MALLOC(ta->pwd_tmp); in lv_textarea_add_char()
147 if(ta->pwd_tmp == NULL) return; in lv_textarea_add_char()
149 _lv_txt_ins(ta->pwd_tmp, ta->cursor.pos, (const char *)letter_buf); in lv_textarea_add_char()
166 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_add_text() local
168 if(ta->pwd_mode) pwd_char_hider(obj); /*Make sure all the current text contains only '*'*/ in lv_textarea_add_text()
184 if(ta->placeholder_txt) { in lv_textarea_add_text()
185 const char * txt_act = lv_label_get_text(ta->label); in lv_textarea_add_text()
190 lv_label_ins_text(ta->label, ta->cursor.pos, txt); in lv_textarea_add_text()
193 if(ta->pwd_mode) { in lv_textarea_add_text()
194 size_t realloc_size = strlen(ta->pwd_tmp) + strlen(txt) + 1; in lv_textarea_add_text()
195 ta->pwd_tmp = lv_mem_realloc(ta->pwd_tmp, realloc_size); in lv_textarea_add_text()
196 LV_ASSERT_MALLOC(ta->pwd_tmp); in lv_textarea_add_text()
197 if(ta->pwd_tmp == NULL) return; in lv_textarea_add_text()
199 _lv_txt_ins(ta->pwd_tmp, ta->cursor.pos, txt); in lv_textarea_add_text()
215 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_del_char() local
216 uint32_t cur_pos = ta->cursor.pos; in lv_textarea_del_char()
225 char * label_txt = lv_label_get_text(ta->label); in lv_textarea_del_char()
228 _lv_txt_cut(label_txt, ta->cursor.pos - 1, 1); in lv_textarea_del_char()
231 lv_label_set_text(ta->label, label_txt); in lv_textarea_del_char()
235 if(ta->placeholder_txt) { in lv_textarea_del_char()
236 const char * txt = lv_label_get_text(ta->label); in lv_textarea_del_char()
240 if(ta->pwd_mode) { in lv_textarea_del_char()
241 _lv_txt_cut(ta->pwd_tmp, ta->cursor.pos - 1, 1); in lv_textarea_del_char()
243 ta->pwd_tmp = lv_mem_realloc(ta->pwd_tmp, strlen(ta->pwd_tmp) + 1); in lv_textarea_del_char()
244 LV_ASSERT_MALLOC(ta->pwd_tmp); in lv_textarea_del_char()
245 if(ta->pwd_tmp == NULL) return; in lv_textarea_del_char()
249 lv_textarea_set_cursor_pos(obj, ta->cursor.pos - 1); in lv_textarea_del_char()
273 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_set_text() local
280 lv_label_set_text(ta->label, ""); in lv_textarea_set_text()
282 if(ta->pwd_mode) { in lv_textarea_set_text()
283 ta->pwd_tmp[0] = '\0'; /*Clear the password too*/ in lv_textarea_set_text()
292 lv_label_set_text(ta->label, txt); in lv_textarea_set_text()
297 if(ta->placeholder_txt) { in lv_textarea_set_text()
298 const char * txt_act = lv_label_get_text(ta->label); in lv_textarea_set_text()
302 if(ta->pwd_mode) { in lv_textarea_set_text()
303 ta->pwd_tmp = lv_mem_realloc(ta->pwd_tmp, strlen(txt) + 1); in lv_textarea_set_text()
304 LV_ASSERT_MALLOC(ta->pwd_tmp); in lv_textarea_set_text()
305 if(ta->pwd_tmp == NULL) return; in lv_textarea_set_text()
306 strcpy(ta->pwd_tmp, txt); in lv_textarea_set_text()
320 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_set_placeholder_text() local
323 if((txt_len == 0) && (ta->placeholder_txt)) { in lv_textarea_set_placeholder_text()
324 lv_mem_free(ta->placeholder_txt); in lv_textarea_set_placeholder_text()
325 ta->placeholder_txt = NULL; in lv_textarea_set_placeholder_text()
330 ta->placeholder_txt = lv_mem_realloc(ta->placeholder_txt, txt_len + 1); in lv_textarea_set_placeholder_text()
331 LV_ASSERT_MALLOC(ta->placeholder_txt); in lv_textarea_set_placeholder_text()
332 if(ta->placeholder_txt == NULL) { in lv_textarea_set_placeholder_text()
337 strcpy(ta->placeholder_txt, txt); in lv_textarea_set_placeholder_text()
338 ta->placeholder_txt[txt_len] = '\0'; in lv_textarea_set_placeholder_text()
348 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_set_cursor_pos() local
349 if((uint32_t)ta->cursor.pos == (uint32_t)pos) return; in lv_textarea_set_cursor_pos()
351 uint32_t len = _lv_txt_get_encoded_length(lv_label_get_text(ta->label)); 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()
389 ta->cursor.valid_x = cur_pos.x; in lv_textarea_set_cursor_pos()
400 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_set_cursor_click_pos() local
401 ta->cursor.click_pos = en ? 1U : 0U; in lv_textarea_set_cursor_click_pos()
408 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_set_password_mode() local
409 if(ta->pwd_mode == en) return; in lv_textarea_set_password_mode()
411 ta->pwd_mode = en ? 1U : 0U; in lv_textarea_set_password_mode()
414 char * txt = lv_label_get_text(ta->label); in lv_textarea_set_password_mode()
417 ta->pwd_tmp = lv_mem_alloc(len + 1); in lv_textarea_set_password_mode()
418 LV_ASSERT_MALLOC(ta->pwd_tmp); in lv_textarea_set_password_mode()
419 if(ta->pwd_tmp == NULL) return; in lv_textarea_set_password_mode()
421 strcpy(ta->pwd_tmp, txt); in lv_textarea_set_password_mode()
430 lv_label_set_text(ta->label, ta->pwd_tmp); in lv_textarea_set_password_mode()
431 lv_mem_free(ta->pwd_tmp); in lv_textarea_set_password_mode()
432 ta->pwd_tmp = NULL; in lv_textarea_set_password_mode()
443 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_set_password_bullet() local
445 if(!bullet && (ta->pwd_bullet)) { in lv_textarea_set_password_bullet()
446 lv_mem_free(ta->pwd_bullet); in lv_textarea_set_password_bullet()
447 ta->pwd_bullet = NULL; in lv_textarea_set_password_bullet()
454 ta->pwd_bullet = lv_mem_realloc(ta->pwd_bullet, txt_len + 1); in lv_textarea_set_password_bullet()
455 LV_ASSERT_MALLOC(ta->pwd_bullet); in lv_textarea_set_password_bullet()
456 if(ta->pwd_bullet == NULL) { in lv_textarea_set_password_bullet()
461 strcpy(ta->pwd_bullet, bullet); in lv_textarea_set_password_bullet()
462 ta->pwd_bullet[txt_len] = '\0'; in lv_textarea_set_password_bullet()
472 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_set_one_line() local
473 if(ta->one_line == en) return; in lv_textarea_set_one_line()
475 ta->one_line = en ? 1U : 0U; in lv_textarea_set_one_line()
479 lv_obj_set_width(ta->label, width); in lv_textarea_set_one_line()
480 lv_obj_set_style_min_width(ta->label, min_width_value, 0); in lv_textarea_set_one_line()
496 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_set_accepted_chars() local
498 ta->accepted_chars = list; in lv_textarea_set_accepted_chars()
505 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_set_max_length() local
507 ta->max_length = num; in lv_textarea_set_max_length()
523 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_set_text_selection() local
525 ta->text_sel_en = en; in lv_textarea_set_text_selection()
538 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_set_password_show_time() local
539 ta->pwd_show_time = time; in lv_textarea_set_password_show_time()
569 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_get_text() local
572 if(ta->pwd_mode == 0) { in lv_textarea_get_text()
573 txt = lv_label_get_text(ta->label); in lv_textarea_get_text()
576 txt = ta->pwd_tmp; in lv_textarea_get_text()
586 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_get_placeholder_text() local
587 if(ta->placeholder_txt) return ta->placeholder_txt; in lv_textarea_get_placeholder_text()
595 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_get_label() local
596 return ta->label; in lv_textarea_get_label()
603 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_get_cursor_pos() local
604 return ta->cursor.pos; in lv_textarea_get_cursor_pos()
611 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_get_cursor_click_pos() local
612 return ta->cursor.click_pos ? true : false; in lv_textarea_get_cursor_click_pos()
619 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_get_password_mode() local
620 return ta->pwd_mode == 1U; in lv_textarea_get_password_mode()
627 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_get_password_bullet() local
629 if(ta->pwd_bullet) return ta->pwd_bullet; in lv_textarea_get_password_bullet()
644 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_get_one_line() local
645 return ta->one_line == 1U; in lv_textarea_get_one_line()
652 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_get_accepted_chars() local
654 return ta->accepted_chars; in lv_textarea_get_accepted_chars()
661 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_get_max_length() local
662 return ta->max_length; in lv_textarea_get_max_length()
670 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_text_is_selected() local
672 if((lv_label_get_text_selection_start(ta->label) != LV_DRAW_LABEL_NO_TXT_SEL || in lv_textarea_text_is_selected()
673 lv_label_get_text_selection_end(ta->label) != LV_DRAW_LABEL_NO_TXT_SEL)) { in lv_textarea_text_is_selected()
690 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_get_text_selection() local
691 return ta->text_sel_en; in lv_textarea_get_text_selection()
702 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_get_password_show_time() local
704 return ta->pwd_show_time; in lv_textarea_get_password_show_time()
716 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_clear_selection() local
718 if(lv_label_get_text_selection_start(ta->label) != LV_DRAW_LABEL_NO_TXT_SEL || in lv_textarea_clear_selection()
719 lv_label_get_text_selection_end(ta->label) != LV_DRAW_LABEL_NO_TXT_SEL) { in lv_textarea_clear_selection()
720 lv_label_set_text_sel_start(ta->label, LV_DRAW_LABEL_NO_TXT_SEL); in lv_textarea_clear_selection()
721 lv_label_set_text_sel_end(ta->label, LV_DRAW_LABEL_NO_TXT_SEL); in lv_textarea_clear_selection()
752 lv_textarea_t * ta = (lv_textarea_t *)obj; 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()
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()
771 …lv_coord_t cur_valid_x_tmp = ta->cursor.valid_x; /*Cursor position set overwrites the valid positi… in lv_textarea_cursor_down()
773 ta->cursor.valid_x = cur_valid_x_tmp; in lv_textarea_cursor_down()
781 lv_textarea_t * ta = (lv_textarea_t *)obj; 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()
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()
796 …lv_coord_t cur_valid_x_tmp = ta->cursor.valid_x; /*Cursor position set overwrites the valid positi… in lv_textarea_cursor_up()
798 ta->cursor.valid_x = cur_valid_x_tmp; in lv_textarea_cursor_up()
810 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_constructor() local
812 ta->pwd_mode = 0; in lv_textarea_constructor()
813 ta->pwd_tmp = NULL; in lv_textarea_constructor()
814 ta->pwd_bullet = NULL; in lv_textarea_constructor()
815 ta->pwd_show_time = LV_TEXTAREA_DEF_PWD_SHOW_TIME; in lv_textarea_constructor()
816 ta->accepted_chars = NULL; in lv_textarea_constructor()
817 ta->max_length = 0; in lv_textarea_constructor()
818 ta->cursor.show = 1; in lv_textarea_constructor()
820 ta->cursor.pos = 1; in lv_textarea_constructor()
821 ta->cursor.click_pos = 1; in lv_textarea_constructor()
822 ta->cursor.valid_x = 0; in lv_textarea_constructor()
823 ta->one_line = 0; in lv_textarea_constructor()
825 ta->text_sel_en = 0; in lv_textarea_constructor()
827 ta->label = NULL; in lv_textarea_constructor()
828 ta->placeholder_txt = NULL; in lv_textarea_constructor()
830 ta->label = lv_label_create(obj); in lv_textarea_constructor()
831 lv_obj_set_width(ta->label, lv_pct(100)); in lv_textarea_constructor()
832 lv_label_set_text(ta->label, ""); in lv_textarea_constructor()
833 lv_obj_add_event_cb(ta->label, label_event_cb, LV_EVENT_ALL, NULL); in lv_textarea_constructor()
846 lv_textarea_t * ta = (lv_textarea_t *)obj; in lv_textarea_destructor() local
847 if(ta->pwd_tmp != NULL) { in lv_textarea_destructor()
848 lv_mem_free(ta->pwd_tmp); in lv_textarea_destructor()
849 ta->pwd_tmp = NULL; in lv_textarea_destructor()
851 if(ta->pwd_bullet != NULL) { in lv_textarea_destructor()
852 lv_mem_free(ta->pwd_bullet); in lv_textarea_destructor()
853 ta->pwd_bullet = NULL; in lv_textarea_destructor()
855 if(ta->placeholder_txt != NULL) { in lv_textarea_destructor()
856 lv_mem_free(ta->placeholder_txt); in lv_textarea_destructor()
857 ta->placeholder_txt = NULL; in lv_textarea_destructor()
916 lv_obj_t * ta = lv_obj_get_parent(label); in label_event_cb() local
920 refr_cursor_area(ta); in label_event_cb()
921 start_cursor_blink(ta); in label_event_cb()
932 lv_textarea_t * ta = (lv_textarea_t *)obj; in cursor_blink_anim_cb() local
933 if(show != ta->cursor.show) { in cursor_blink_anim_cb()
934 ta->cursor.show = show ? 1U : 0U; in cursor_blink_anim_cb()
936 lv_area_copy(&area_tmp, &ta->cursor.area); in cursor_blink_anim_cb()
937 area_tmp.x1 += ta->label->coords.x1; in cursor_blink_anim_cb()
938 area_tmp.y1 += ta->label->coords.y1; in cursor_blink_anim_cb()
939 area_tmp.x2 += ta->label->coords.x1; in cursor_blink_anim_cb()
940 area_tmp.y2 += ta->label->coords.y1; in cursor_blink_anim_cb()
974 lv_textarea_t * ta = (lv_textarea_t *)obj; in pwd_char_hider() local
975 if(ta->pwd_mode == 0) { in pwd_char_hider()
980 char * txt = lv_label_get_text(ta->label); in pwd_char_hider()
994 lv_label_set_text(ta->label, txt_tmp); in pwd_char_hider()
1008 lv_textarea_t * ta = (lv_textarea_t *)obj; in char_is_accepted() local
1011 …if(ta->max_length > 0 && _lv_txt_get_encoded_length(lv_textarea_get_text(obj)) >= ta->max_length) { in char_is_accepted()
1015 if(ta->accepted_chars == NULL || ta->accepted_chars[0] == '\0') return true; in char_is_accepted()
1019 while(ta->accepted_chars[i] != '\0') { in char_is_accepted()
1020 uint32_t a = _lv_txt_encoded_next(ta->accepted_chars, &i); in char_is_accepted()
1029 lv_textarea_t * ta = (lv_textarea_t *)obj; in start_cursor_blink() local
1033 ta->cursor.show = 1; in start_cursor_blink()
1038 lv_anim_set_var(&a, ta); in start_cursor_blink()
1051 lv_textarea_t * ta = (lv_textarea_t *)obj; in refr_cursor_area() local
1057 const char * txt = lv_label_get_text(ta->label); in refr_cursor_area()
1072 lv_label_get_letter_pos(ta->label, cur_pos, &letter_pos); in refr_cursor_area()
1074 …ext_align_t align = lv_obj_calculate_style_text_align(ta->label, LV_PART_MAIN, lv_label_get_text(t… in refr_cursor_area()
1077 if(((letter_pos.x + ta->label->coords.x1) + letter_w > ta->label->coords.x2) && in refr_cursor_area()
1078 (ta->one_line == 0 && align != LV_TEXT_ALIGN_RIGHT)) { in refr_cursor_area()
1096 ta->cursor.txt_byte_pos = byte_pos; in refr_cursor_area()
1113 lv_area_copy(&area_tmp, &ta->cursor.area); in refr_cursor_area()
1114 area_tmp.x1 += ta->label->coords.x1; in refr_cursor_area()
1115 area_tmp.y1 += ta->label->coords.y1; in refr_cursor_area()
1116 area_tmp.x2 += ta->label->coords.x1; in refr_cursor_area()
1117 area_tmp.y2 += ta->label->coords.y1; in refr_cursor_area()
1120 lv_area_copy(&ta->cursor.area, &cur_area); in refr_cursor_area()
1122 lv_area_copy(&area_tmp, &ta->cursor.area); in refr_cursor_area()
1123 area_tmp.x1 += ta->label->coords.x1; in refr_cursor_area()
1124 area_tmp.y1 += ta->label->coords.y1; in refr_cursor_area()
1125 area_tmp.x2 += ta->label->coords.x1; in refr_cursor_area()
1126 area_tmp.y2 += ta->label->coords.y1; in refr_cursor_area()
1136 lv_textarea_t * ta = (lv_textarea_t *)obj; in update_cursor_position_on_click() local
1137 if(ta->cursor.click_pos == 0) return; in update_cursor_position_on_click()
1145 lv_obj_get_coords(ta->label, &label_coords); in update_cursor_position_on_click()
1158 lv_coord_t label_width = lv_obj_get_width(ta->label); in update_cursor_position_on_click()
1162 lv_label_t * label_data = (lv_label_t *)ta->label; in update_cursor_position_on_click()
1175 char_id_at_click = lv_label_get_letter_on(ta->label, &rel_pos); in update_cursor_position_on_click()
1176 click_outside_label = !lv_label_is_char_under_pos(ta->label, &rel_pos); in update_cursor_position_on_click()
1179 if(ta->text_sel_en) { in update_cursor_position_on_click()
1180 if(!ta->text_sel_in_prog && !click_outside_label && code == LV_EVENT_PRESSED) { in update_cursor_position_on_click()
1182 ta->sel_start = char_id_at_click; in update_cursor_position_on_click()
1183 ta->sel_end = LV_LABEL_TEXT_SELECTION_OFF; in update_cursor_position_on_click()
1184 ta->text_sel_in_prog = 1; in update_cursor_position_on_click()
1187 else if(ta->text_sel_in_prog && code == LV_EVENT_PRESSING) { in update_cursor_position_on_click()
1189 ta->sel_end = char_id_at_click; in update_cursor_position_on_click()
1191 … else if(ta->text_sel_in_prog && (code == LV_EVENT_PRESS_LOST || code == LV_EVENT_RELEASED)) { in update_cursor_position_on_click()
1197 …if(ta->text_sel_in_prog || code == LV_EVENT_PRESSED) lv_textarea_set_cursor_pos(obj, char_id_at_cl… in update_cursor_position_on_click()
1199 if(ta->text_sel_in_prog) { in update_cursor_position_on_click()
1203 if(ta->sel_start > ta->sel_end) { in update_cursor_position_on_click()
1204 if(label_data->sel_start != ta->sel_end || label_data->sel_end != ta->sel_start) { in update_cursor_position_on_click()
1205 label_data->sel_start = ta->sel_end; in update_cursor_position_on_click()
1206 label_data->sel_end = ta->sel_start; in update_cursor_position_on_click()
1210 else if(ta->sel_start < ta->sel_end) { in update_cursor_position_on_click()
1211 if(label_data->sel_start != ta->sel_start || label_data->sel_end != ta->sel_end) { in update_cursor_position_on_click()
1212 label_data->sel_start = ta->sel_start; in update_cursor_position_on_click()
1213 label_data->sel_end = ta->sel_end; in update_cursor_position_on_click()
1226 ta->text_sel_in_prog = 0; in update_cursor_position_on_click()
1239 char_id_at_click = lv_label_get_letter_on(ta->label, &rel_pos); in update_cursor_position_on_click()
1271 lv_textarea_t * ta = (lv_textarea_t *)obj; in draw_placeholder() local
1273 const char * txt = lv_label_get_text(ta->label); in draw_placeholder()
1276 if(txt[0] == '\0' && ta->placeholder_txt && ta->placeholder_txt[0] != 0) { in draw_placeholder()
1281 if(ta->one_line) ph_dsc.flag |= LV_TEXT_FLAG_EXPAND; in draw_placeholder()
1289 lv_draw_label(draw_ctx, &ph_dsc, &ph_coords, ta->placeholder_txt, NULL); in draw_placeholder()
1296 lv_textarea_t * ta = (lv_textarea_t *)obj; in draw_cursor() local
1298 const char * txt = lv_label_get_text(ta->label); in draw_cursor()
1300 if(ta->cursor.show == 0) return; in draw_cursor()
1308 lv_area_copy(&cur_area, &ta->cursor.area); in draw_cursor()
1310 cur_area.x1 += ta->label->coords.x1; in draw_cursor()
1311 cur_area.y1 += ta->label->coords.y1; in draw_cursor()
1312 cur_area.x2 += ta->label->coords.x1; in draw_cursor()
1313 cur_area.y2 += ta->label->coords.y1; in draw_cursor()
1321 …lv_memcpy(letter_buf, &txt[ta->cursor.txt_byte_pos], _lv_txt_encoded_size(&txt[ta->cursor.txt_byte… in draw_cursor()
1329 lv_color_t label_color = lv_obj_get_style_text_color(ta->label, 0); in draw_cursor()
1340 lv_textarea_t * ta = (lv_textarea_t *) obj; in auto_hide_characters() local
1342 if(ta->pwd_show_time == 0) { in auto_hide_characters()
1348 lv_anim_set_var(&a, ta); in auto_hide_characters()
1350 lv_anim_set_time(&a, ta->pwd_show_time); in auto_hide_characters()