# lv_textarea_private.h (/api/private/widgets/textarea/lv_textarea_private_h)



<RelatedHeaders name="lv_textarea.h" isPrivate="true" />

<ApiSummary structs="1" />

Structs [#structs]

<ApiMember kind="struct" name="_lv_textarea_t">
  \_lv_textarea_t [#_lv_textarea_t]

  Data of text area

  | Member                  | Type                                                              | Description                                                                   |
  | ----------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------------------- |
  | `obj`                   | <ApiLink name="lv_obj_t" />                                       |                                                                               |
  | `label`                 | <ApiLink name="lv_obj_t" display="lv_obj_t *" />                  | Label of the text area                                                        |
  | `placeholder_txt`       | `char *`                                                          | Place holder label. only visible if text is an empty string                   |
  | `placeholder_txt_size`  | <ApiLink name="lv_point_t" />                                     |                                                                               |
  | `pwd_tmp`               | `char *`                                                          | Size of the placeholder text Used to store the original text in password mode |
  | `pwd_bullet`            | `char *`                                                          | Replacement characters displayed in password mode                             |
  | `accepted_chars`        | `char *`                                                          | Only these characters will be accepted. NULL: accept all                      |
  | `max_length`            | `uint32_t`                                                        | The max. number of characters. 0: no limit                                    |
  | `pwd_show_time`         | `uint32_t`                                                        | Time to show characters in password mode before change them to '\*'           |
  | `valid_x`               | `int32_t`                                                         | Used when stepping up/down to a shorter line. (Used by the library)           |
  | `pos`                   | `uint32_t`                                                        | The current cursor position (0: before 1st letter; 1: before 2nd letter ...)  |
  | `area`                  | <ApiLink name="lv_area_t" />                                      | Cursor area relative to the Text Area                                         |
  | `txt_byte_pos`          | `uint32_t`                                                        | Byte index of the letter after (on) the cursor                                |
  | `show`                  | `uint8_t`                                                         | Cursor is visible now or not (Handled by the library)                         |
  | `click_pos`             | `uint8_t`                                                         | 1: Enable positioning the cursor by clicking the text area                    |
  | `cursor`                | <ApiLink name="_lv_textarea_t" display="struct _lv_textarea_t" /> |                                                                               |
  | `sel_start`             | `uint32_t`                                                        | Temporary values for text selection                                           |
  | `sel_end`               | `uint32_t`                                                        |                                                                               |
  | `text_sel_in_prog`      | `uint8_t`                                                         | User is in process of selecting                                               |
  | `text_sel_en`           | `uint8_t`                                                         | Text can be selected on this text area                                        |
  | `pwd_mode`              | `uint8_t`                                                         | Replace characters with '\*'                                                  |
  | `one_line`              | `uint8_t`                                                         | One line mode (ignore line breaks)                                            |
  | `static_accepted_chars` | `uint8_t`                                                         | 1: Only a pointer is saved in `accepted_chars`                                |
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_obj_private.h&#x22;, &#x22;lvgl_public.h&#x22;]" includedBy="[&#x22;lvgl_private.h&#x22;, &#x22;lv_spinbox_private.h&#x22;]" transitiveIncludes="[&#x22;lv_array.h&#x22;, &#x22;lv_event_private.h&#x22;]" />
