18#if LV_USE_TEXTAREA != 0
22#error "lv_ta: lv_label is required. Enable it in lv_conf.h (LV_USE_LABEL 1)"
31#define LV_TEXTAREA_CURSOR_LAST (0x7FFF)
33LV_EXPORT_CONST_INT(LV_TEXTAREA_CURSOR_LAST);
43 char * placeholder_txt;
46 const char * accepted_chars;
48 uint16_t pwd_show_time;
55 uint32_t txt_byte_pos;
57 uint8_t click_pos : 1;
59#if LV_LABEL_TEXT_SELECTION
62 uint8_t text_sel_in_prog : 1;
63 uint8_t text_sel_en : 1;
96void lv_textarea_add_char(
lv_obj_t * obj, uint32_t c);
103void lv_textarea_add_text(
lv_obj_t * obj,
const char * txt);
109void lv_textarea_del_char(
lv_obj_t * obj);
115void lv_textarea_del_char_forward(
lv_obj_t * obj);
126void lv_textarea_set_text(
lv_obj_t * obj,
const char * txt);
133void lv_textarea_set_placeholder_text(
lv_obj_t * obj,
const char * txt);
142void lv_textarea_set_cursor_pos(
lv_obj_t * obj, int32_t pos);
149void lv_textarea_set_cursor_click_pos(
lv_obj_t * obj,
bool en);
156void lv_textarea_set_password_mode(
lv_obj_t * obj,
bool en);
163void lv_textarea_set_password_bullet(
lv_obj_t * obj,
const char * bullet);
170void lv_textarea_set_one_line(
lv_obj_t * obj,
bool en);
177void lv_textarea_set_accepted_chars(
lv_obj_t * obj,
const char * list);
184void lv_textarea_set_max_length(
lv_obj_t * obj, uint32_t num);
193void lv_textarea_set_insert_replace(
lv_obj_t * obj,
const char * txt);
200void lv_textarea_set_text_selection(
lv_obj_t * obj,
bool en);
207void lv_textarea_set_password_show_time(
lv_obj_t * obj, uint16_t time);
217void lv_textarea_set_align(
lv_obj_t * obj, lv_text_align_t align);
228const char * lv_textarea_get_text(
const lv_obj_t * obj);
235const char * lv_textarea_get_placeholder_text(
lv_obj_t * obj);
249uint32_t lv_textarea_get_cursor_pos(
const lv_obj_t * obj);
256bool lv_textarea_get_cursor_click_pos(
lv_obj_t * obj);
263bool lv_textarea_get_password_mode(
const lv_obj_t * obj);
270const char * lv_textarea_get_password_bullet(
lv_obj_t * obj);
277bool lv_textarea_get_one_line(
const lv_obj_t * obj);
284const char * lv_textarea_get_accepted_chars(
lv_obj_t * obj);
291uint32_t lv_textarea_get_max_length(
lv_obj_t * obj);
298bool lv_textarea_text_is_selected(
const lv_obj_t * obj);
305bool lv_textarea_get_text_selection(
lv_obj_t * obj);
312uint16_t lv_textarea_get_password_show_time(
lv_obj_t * obj);
322void lv_textarea_clear_selection(
lv_obj_t * obj);
328void lv_textarea_cursor_right(
lv_obj_t * obj);
334void lv_textarea_cursor_left(
lv_obj_t * obj);
340void lv_textarea_cursor_down(
lv_obj_t * obj);
346void lv_textarea_cursor_up(
lv_obj_t * obj);
@ LV_PART_CUSTOM_FIRST
Definition lv_obj.h:78
Definition lv_obj_class.h:49