/lvgl-latest/docs/details/widgets/ |
D | textarea.rst | 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 [all …]
|
D | label.rst | 11 A Label is the Widget used to display text. 20 text properties. Padding values can be used to add space between 21 the text and the edges of the Label's background. 22 - :cpp:enumerator:`LV_PART_SCROLLBAR` The scrollbar that is shown when the text is 25 :ref:`selected text <lv_label_text_selection>`. Only ``text_color`` and ``bg_color`` style 34 Set text 37 You can set the text on a Label at runtime with 38 :cpp:expr:`lv_label_set_text(label, "New text")`. This will allocate a buffer 40 Therefore, you don't need to keep the text you pass to 44 can be used to set the text. Example: :cpp:expr:`lv_label_set_text_fmt(label, "Value: %d", 15)`. [all …]
|
D | spangroup.rst | 11 The Spangroup Widget is used to display rich text. Different 12 from the Label Widget, Spangroups can render text styled with 17 own text and style properties for that text. You add 1 Span (as a child) to the 18 Spangroup for each "span" of uniquely-styled text needed. Each Span so added is 40 Set text and style 49 After a Span is created, use the following functions to set its text 52 - :cpp:expr:`lv_span_set_text(span, "text")` 97 Like the Label Widget, a Spangroup can be set to one the following text-alignment modes: 99 - :cpp:enumerator:`LV_TEXT_ALIGN_LEFT` Align text to left. 100 - :cpp:enumerator:`LV_TEXT_ALIGN_CENTER` Center text. [all …]
|
D | list.rst | 40 :cpp:expr:`lv_list_add_button(list, icon, text)` adds a full-width button with an icon 41 (that can be an image or symbol) and text. This function returns a pointer to the 44 The text is scrolled horizontally if it is longer than the button. 49 :cpp:expr:`lv_list_add_text(list, text)` adds a text string. This function returns a 50 pointer to the label created, which you can use to, for example, change its text
|
D | table.rst | 11 Tables are built from rows, columns, and cells containing text. 13 The Table Widget is very lightweight because only the text strings are stored. 30 :ref:`typical background style properties <typical bg props>` as well as text 43 Cells can store only text so numbers need to be converted to text 46 :cpp:expr:`lv_table_set_cell_value(table, row, col, "Content")`. The text is 49 Line breaks can be used in the text like ``"Value\n60.3"``.
|
D | checkbox.rst | 20 the text and the :ref:`typical background style properties <typical bg props>`. 38 The text can be modified with 39 :cpp:expr:`lv_checkbox_set_text(cb, "New text")` and will be 42 To set static text, use :cpp:expr:`lv_checkbox_set_text_static(cb, txt)`. This 43 way, only a pointer to ``txt`` will be stored. The provided text buffer must remain
|
/lvgl-latest/src/widgets/label/ |
D | lv_label.c | 56 static size_t get_text_length(const char * text); 57 static void copy_text_to_label(lv_label_t * label, const char * text); 133 void lv_label_set_text(lv_obj_t * obj, const char * text) in lv_label_set_text() argument 139 if(text == NULL) text = label->text; in lv_label_set_text() 142 const size_t text_len = get_text_length(text); in lv_label_set_text() 145 if(label->text == text && label->static_txt == 0) { in lv_label_set_text() 146 label->text = lv_realloc(label->text, text_len); in lv_label_set_text() 147 LV_ASSERT_MALLOC(label->text); in lv_label_set_text() 148 if(label->text == NULL) return; in lv_label_set_text() 151 lv_text_ap_proc(label->text, label->text); in lv_label_set_text() [all …]
|
/lvgl-latest/demos/ebike/translations/ |
D | lv_i18n.h | 79 #define _(text) lv_i18n_get_text(text) argument 80 #define _p(text, num) lv_i18n_get_text_plural(text, num) argument
|
/lvgl-latest/docs/ |
D | example_list.py | 84 def write_header(h_num, text, f): argument 85 text = text.strip() 87 f.write(header_defs[h_num] * len(text)) 90 f.write(text + '\n') 91 f.write(header_defs[h_num] * len(text))
|
/lvgl-latest/docs/_ext/ |
D | link_roles.py | 22 def link_to_translation(name, rawtext, text, lineno, inliner, options={}, content=[]): argument 24 node['expr'] = (rawtext, text, options) 36 rawtext, text, options = node['expr'] 37 (language, link_text) = text.split(':')
|
D | lv_example.py | 54 …paragraph_node = nodes.raw(text=f"<p>{self.human_language_name(language)} code </p>", format… 55 for text, url in buttons.items(): 56 …paragraph_node.append(nodes.raw(text=f"<a class='lv-example-link-button' onclick=\"event.stopPropa… 93 …layout_node = nodes.raw(text=f"<div class='lv-example-container'>{iframe_html}{description_html}</… 101 trailing_node = nodes.raw(text=f"<hr/>", format='html')
|
/lvgl-latest/src/draw/ |
D | lv_draw_label.c | 104 if(dsc->text == NULL || dsc->text[0] == '\0') return; in lv_draw_label() 121 new_dsc->text = lv_strdup(dsc->text); in lv_draw_label() 161 dsc->text = letter_buf_char; in lv_draw_character() 218 lv_bidi_calculate_align(&align, &base_dir, dsc->text); in lv_draw_label_iterate_characters() 227 lv_text_get_size(&p, dsc->text, dsc->font, dsc->letter_space, dsc->line_space, LV_COORD_MAX, in lv_draw_label_iterate_characters() 266 …uint32_t line_end = line_start + lv_text_get_next_line(&dsc->text[line_start], remaining_len, font… in lv_draw_label_iterate_characters() 273 …line_end += lv_text_get_next_line(&dsc->text[line_start], remaining_len, font, dsc->letter_space, … in lv_draw_label_iterate_characters() 283 if(dsc->text[line_start] == '\0') return; in lv_draw_label_iterate_characters() 288 …line_width = lv_text_get_width_with_flags(&dsc->text[line_start], line_end - line_start, font, dsc… in lv_draw_label_iterate_characters() 296 …line_width = lv_text_get_width_with_flags(&dsc->text[line_start], line_end - line_start, font, dsc… in lv_draw_label_iterate_characters() [all …]
|
/lvgl-latest/src/libs/thorvg/ |
D | tvgText.cpp | 52 Result Text::text(const char* text) noexcept in text() argument 54 return pImpl->text(text); in text()
|
D | tvgSvgSceneBuilder.cpp | 73 static Box _boundingBox(const Text* text) in _boundingBox() argument 76 text->bounds(&x, &y, &w, &h, false); in _boundingBox() 776 static void _applyTextFill(SvgStyleProperty* style, Text* text, const Box& vBox) in _applyTextFill() argument 783 if (!style->fill.paint.gradient->userSpace) bBox = _boundingBox(text); in _applyTextFill() 787 text->fill(std::move(linear)); in _applyTextFill() 790 text->fill(std::move(radial)); in _applyTextFill() 797 text->fill(style->color.r, style->color.g, style->color.b); in _applyTextFill() 798 text->opacity(style->fill.opacity); in _applyTextFill() 801 text->fill(style->fill.paint.color.r, style->fill.paint.color.g, style->fill.paint.color.b); in _applyTextFill() 802 text->opacity(style->fill.opacity); in _applyTextFill() [all …]
|
D | tvgText.h | 55 Result text(const char* utf8) in text() function 151 auto text = Text::gen().release(); in duplicate() local 152 auto dup = text->pImpl; in duplicate() 164 return text; in duplicate()
|
/lvgl-latest/src/libs/qrcode/ |
D | qrcodegen.h | 172 bool qrcodegen_encodeText(const char * text, uint8_t tempBuffer[], uint8_t qrcode[], 240 bool qrcodegen_isAlphanumeric(const char * text); 247 bool qrcodegen_isNumeric(const char * text); 283 struct qrcodegen_Segment qrcodegen_makeAlphanumeric(const char * text, uint8_t buf[]);
|
D | qrcodegen.c | 130 bool qrcodegen_encodeText(const char * text, uint8_t tempBuffer[], uint8_t qrcode[], in qrcodegen_encodeText() argument 134 size_t textLen = strlen(text); in qrcodegen_encodeText() 140 if(qrcodegen_isNumeric(text)) { in qrcodegen_encodeText() 143 seg = qrcodegen_makeNumeric(text, tempBuffer); in qrcodegen_encodeText() 145 else if(qrcodegen_isAlphanumeric(text)) { in qrcodegen_encodeText() 148 seg = qrcodegen_makeAlphanumeric(text, tempBuffer); in qrcodegen_encodeText() 154 tempBuffer[i] = (uint8_t)text[i]; in qrcodegen_encodeText() 848 bool qrcodegen_isAlphanumeric(const char * text) in qrcodegen_isAlphanumeric() argument 850 LV_ASSERT(text != NULL); in qrcodegen_isAlphanumeric() 851 for(; *text != '\0'; text++) { in qrcodegen_isAlphanumeric() [all …]
|
/lvgl-latest/src/misc/ |
D | lv_text.c | 92 void lv_text_get_size(lv_point_t * size_res, const char * text, const lv_font_t * font, int32_t let… in lv_text_get_size() argument 98 if(text == NULL) return; in lv_text_get_size() 108 while(text[line_start] != '\0') { in lv_text_get_size() 109 …new_line_start += lv_text_get_next_line(&text[line_start], LV_TEXT_LEN_MAX, font, letter_space, ma… in lv_text_get_size() 121 …int32_t act_line_length = lv_text_get_width(&text[line_start], new_line_start - line_start, font, … in lv_text_get_size() 128 if((line_start != 0) && (text[line_start - 1] == '\n' || text[line_start - 1] == '\r')) { in lv_text_get_size() 504 char * text = 0; in lv_text_set_text_vfmt() local 517 text = lv_malloc(len_ap + 1); in lv_text_set_text_vfmt() 518 LV_ASSERT_MALLOC(text); in lv_text_set_text_vfmt() 519 if(text == NULL) { in lv_text_set_text_vfmt() [all …]
|
/lvgl-latest/src/drivers/sdl/ |
D | lv_sdl_keyboard.c | 109 win_id = event->text.windowID; in lv_sdl_keyboard_handler() 144 const size_t len = lv_strlen(dsc->buf) + lv_strlen(event->text.text); in lv_sdl_keyboard_handler() 146 strcat(dsc->buf, event->text.text); in lv_sdl_keyboard_handler()
|
/lvgl-latest/docs/details/debugging/ |
D | log.rst | 62 ``LV_LOG_TRACE/INFO/WARN/ERROR/USER(text)`` or ``LV_LOG(text)`` 65 - ``LV_LOG_TRACE/INFO/WARN/ERROR/USER(text)`` append the following information to your ``text`` 70 - ``LV_LOG(text)`` is similar to ``LV_LOG_USER`` but has no extra information attached.
|
/lvgl-latest/tests/src/test_cases/widgets/ |
D | test_textarea.c | 36 const char * text = "Hello LVGL!"; in test_textarea_should_return_actual_text_when_password_mode_is_enabled() local 38 lv_textarea_add_text(textarea, text); in test_textarea_should_return_actual_text_when_password_mode_is_enabled() 42 TEST_ASSERT_EQUAL_STRING(text, lv_textarea_get_text(textarea)); in test_textarea_should_return_actual_text_when_password_mode_is_enabled() 72 const char * text = "Hello LVGL!"; in test_textarea_should_update_placeholder_text() local 75 lv_textarea_set_placeholder_text(textarea, text); in test_textarea_should_update_placeholder_text() 76 TEST_ASSERT_EQUAL_STRING(text, lv_textarea_get_placeholder_text(textarea)); in test_textarea_should_update_placeholder_text()
|
/lvgl-latest/examples/widgets/scale/ |
D | lv_example_scale_7.c | 27 if(label_draw_dsc->text_local) lv_free((void *)label_draw_dsc->text); in draw_event_cb() 33 label_draw_dsc->text = lv_strdup(tmp_buffer); in draw_event_cb() 37 …lv_text_get_size(&size, label_draw_dsc->text, label_draw_dsc->font, 0, 0, 1000, LV_TEXT_FLAG_NONE); in draw_event_cb()
|
/lvgl-latest/src/libs/svg/ |
D | lv_svg_render.c | 653 lv_svg_render_text_t * text = (lv_svg_render_text_t *)obj; in _set_text_attr() local 655 SET_FONT_ATTRS(text, attr); in _set_text_attr() 659 text->x = attr->value.fval; in _set_text_attr() 662 text->y = attr->value.fval; in _set_text_attr() 1091 lv_svg_render_text_t * text = (lv_svg_render_text_t *)obj; in _init_text() local 1092 text->family = lv_strdup("sans-serif"); in _init_text() 1093 text->size = 16.0f; in _init_text() 1094 text->style = LV_FREETYPE_FONT_STYLE_NORMAL; in _init_text() 1095 text->font = NULL; in _init_text() 1096 text->x = text->y = 0.0f; in _init_text() [all …]
|
/lvgl-latest/examples/event/ |
D | lv_example_event_streak.c | 18 const char * text = lv_event_get_user_data(e); in streak_event_cb() local 19 lv_label_set_text(label, text); in streak_event_cb()
|
/lvgl-latest/tests/src/test_cases/libs/ |
D | test_lodepng.c | 18 static void create_image_item(lv_obj_t * parent, const void * src, const char * text) in create_image_item() argument 30 lv_label_set_text(label, text); in create_image_item()
|