Lines Matching refs:text

13 text becomes long enough, the Text Area can be scrolled.
25 :ref:`typical background style properties <typical bg props>` and the text related
26 style properties including ``text_align`` to align the text to the left,
28 - :cpp:enumerator:`LV_PART_SCROLLBAR` The scrollbar that is shown when the text is
31 text <lv_label_text_selection>`. Only ``text_color`` and
41 the :ref:`placeholder text <textarea_placeholder_text>`.
50 Adding text
53 You can insert text or characters to the current cursor's position with:
56 - :cpp:expr:`lv_textarea_add_text(textarea, "insert this text")`
61 :cpp:expr:`lv_textarea_set_text(textarea, "New text")` replaces all existing text
62 with "New text".
66 Placeholder text
69 Placeholder text is text that is displayed when the Text Area is empty. This can be
72 Specify placeholder text using
73 :cpp:expr:`lv_textarea_set_placeholder_text(textarea, "Placeholder text")`.
112 The Text Area can be configured to keep all text on a single line with
138 text entered, not the bullet characters.
154 Max text length
160 Very long text
163 If the text in the Text Area is very long (e.g. > 20k characters), scrolling and
165 ``lv_conf.h`` to a non-zero value, the performance with long text is significantly
167 vertical position of the text shown. With this mode configured, scrolling and drawing
168 is as fast as with "normal" short text. The cost is 12 extra bytes per label in RAM.
170 This value is set to ``1`` by default. If you do not use long text, you can save
173 Selecting text
178 and Text Area Widgets, and text-selection functionality is automated in Text Area
179 Widgets. (If you do not use selected text in your application, you can save 8 bytes
182 Any part of the text can be selected if enabled with
184 when you select text on your PC by clicking and dragging with your mouse or other
185 pointer input device. If you pass ``false`` to this function to disable text
186 selection, any text selected time of the call will be de-selected.
188 Shift+click and keyboard-only text selection with Shift+Arrow keys is expected to
191 If you need to programmatically deal with selected text, in addition to the
196 - :cpp:expr:`lv_textarea_get_text_selection(textarea)` tells whether text selection is enabled.
197 - :cpp:expr:`lv_textarea_text_is_selected(textarea)` tells whether any text is currently selected.
198 - :cpp:expr:`lv_textarea_clear_selection(textarea)` clears current text selection.
200 the zero-based index of the first character of the selected text.
201 Pass :c:macro:`LV_DRAW_LABEL_NO_TXT_SEL` to specify no text selected.
203 the zero-based index of the character just after the selected text.
204 Pass :c:macro:`LV_DRAW_LABEL_NO_TXT_SEL` to specify no text selected.
206 first character of the selected text.
207 :c:macro:`LV_DRAW_LABEL_NO_TXT_SEL` indicates no text selected.
209 character just after the selected text.
210 :c:macro:`LV_DRAW_LABEL_NO_TXT_SEL` indicates no text selected.
212 Normally you won't need these since Text Area automates the text selection process,
222 - :cpp:enumerator:`LV_EVENT_INSERT` Sent right before a character or text is
223 inserted. The event parameter is the text about to be inserted.
224 :cpp:expr:`lv_textarea_set_insert_replace(textarea, "New text")` can be called
225 from within that event to replace the text to be inserted. The contents of the
228 copied the text). So it should not be a local buffer (created on the stack)