lv_textarea_private.h

API reference for lv_textarea_private.h

Report on GitHub
See Also: Public APIThis is the private implementation. See the public header for the stable interface.lv_textarea.h
Summary

Structs

struct

_lv_textarea_t

Data of text area

MemberTypeDescription
objlv_obj_t
labellv_obj_t *Label of the text area
placeholder_txtchar *Place holder label. only visible if text is an empty string
placeholder_txt_sizelv_point_t
pwd_tmpchar *Size of the placeholder text Used to store the original text in password mode
pwd_bulletchar *Replacement characters displayed in password mode
accepted_charschar *Only these characters will be accepted. NULL: accept all
max_lengthuint32_tThe max. number of characters. 0: no limit
pwd_show_timeuint32_tTime to show characters in password mode before change them to '*'
valid_xint32_tUsed when stepping up/down to a shorter line. (Used by the library)
posuint32_tThe current cursor position (0: before 1st letter; 1: before 2nd letter ...)
arealv_area_tCursor area relative to the Text Area
txt_byte_posuint32_tByte index of the letter after (on) the cursor
showuint8_tCursor is visible now or not (Handled by the library)
click_posuint8_t1: Enable positioning the cursor by clicking the text area
cursorstruct _lv_textarea_t
sel_startuint32_tTemporary values for text selection
sel_enduint32_t
text_sel_in_proguint8_tUser is in process of selecting
text_sel_enuint8_tText can be selected on this text area
pwd_modeuint8_tReplace characters with '*'
one_lineuint8_tOne line mode (ignore line breaks)
static_accepted_charsuint8_t1: Only a pointer is saved in accepted_chars

Dependencies

How is this guide?

Last updated on

On this page