# lv_textarea_private.h (/api/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`            | <ApiLink name="uint32_t" />                                       | The max. number of characters. 0: no limit                                    |
  | `pwd_show_time`         | <ApiLink name="uint32_t" />                                       | Time to show characters in password mode before change them to '\*'           |
  | `valid_x`               | <ApiLink name="int32_t" />                                        | Used when stepping up/down to a shorter line. (Used by the library)           |
  | `pos`                   | <ApiLink name="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`          | <ApiLink name="uint32_t" />                                       | Byte index of the letter after (on) the cursor                                |
  | `show`                  | <ApiLink name="uint8_t" />                                        | Cursor is visible now or not (Handled by the library)                         |
  | `click_pos`             | <ApiLink name="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`             | <ApiLink name="uint32_t" />                                       | Temporary values for text selection                                           |
  | `sel_end`               | <ApiLink name="uint32_t" />                                       |                                                                               |
  | `text_sel_in_prog`      | <ApiLink name="uint8_t" />                                        | User is in process of selecting                                               |
  | `text_sel_en`           | <ApiLink name="uint8_t" />                                        | Text can be selected on this text area                                        |
  | `pwd_mode`              | <ApiLink name="uint8_t" />                                        | Replace characters with '\*'                                                  |
  | `one_line`              | <ApiLink name="uint8_t" />                                        | One line mode (ignore line breaks)                                            |
  | `static_accepted_chars` | <ApiLink name="uint8_t" />                                        | 1: Only a pointer is saved in `accepted_chars`                                |
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_obj_private.h&#x22;, &#x22;lv_textarea.h&#x22;]" includedBy="[&#x22;lv_spinbox_private.h&#x22;]" transitiveIncludes="[&#x22;lv_anim.h&#x22;, &#x22;lv_area.h&#x22;, &#x22;lv_array.h&#x22;, &#x22;lv_assert.h&#x22;, &#x22;lv_bidi.h&#x22;, &#x22;lv_color.h&#x22;, &#x22;lv_color_op.h&#x22;, &#x22;lv_conf_internal.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;, &#x22;lv_display.h&#x22;, &#x22;lv_draw.h&#x22;, &#x22;lv_draw_arc.h&#x22;, &#x22;lv_draw_blur.h&#x22;, &#x22;lv_draw_buf.h&#x22;, &#x22;lv_draw_image.h&#x22;, &#x22;lv_draw_label.h&#x22;, &#x22;lv_draw_line.h&#x22;, &#x22;lv_draw_rect.h&#x22;, &#x22;lv_draw_triangle.h&#x22;, &#x22;lv_event.h&#x22;, &#x22;lv_ext_data.h&#x22;, &#x22;lv_flex.h&#x22;, &#x22;lv_font.h&#x22;, &#x22;lv_fs.h&#x22;, &#x22;lv_grad.h&#x22;, &#x22;lv_grid.h&#x22;, &#x22;lv_group.h&#x22;, &#x22;lv_image_decoder.h&#x22;, &#x22;lv_image_dsc.h&#x22;, &#x22;lv_indev.h&#x22;, &#x22;lv_label.h&#x22;, &#x22;lv_layout.h&#x22;, &#x22;lv_ll.h&#x22;, &#x22;lv_log.h&#x22;, &#x22;lv_math.h&#x22;, &#x22;lv_matrix.h&#x22;, &#x22;lv_mem.h&#x22;, &#x22;lv_obj.h&#x22;, &#x22;lv_obj_class.h&#x22;, &#x22;lv_obj_draw.h&#x22;, &#x22;lv_obj_event.h&#x22;, &#x22;lv_obj_pos.h&#x22;, &#x22;lv_obj_property.h&#x22;, &#x22;lv_obj_property_names.h&#x22;, &#x22;lv_obj_scroll.h&#x22;, &#x22;lv_obj_style.h&#x22;, &#x22;lv_obj_style_gen.h&#x22;, &#x22;lv_obj_tree.h&#x22;, &#x22;lv_observer.h&#x22;, &#x22;lv_palette.h&#x22;, &#x22;lv_profiler.h&#x22;, &#x22;lv_profiler_builtin.h&#x22;, &#x22;lv_sprintf.h&#x22;, &#x22;lv_string.h&#x22;, &#x22;lv_style.h&#x22;, &#x22;lv_style_gen.h&#x22;, &#x22;lv_style_properties.h&#x22;, &#x22;lv_symbol_def.h&#x22;, &#x22;lv_text.h&#x22;, &#x22;lv_tick.h&#x22;, &#x22;lv_timer.h&#x22;, &#x22;lv_types.h&#x22;]" />
