* fix(obj): fix crash of lv_obj_move_foreground/background when the parent of obj is NULL
* decrease LOG level
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
* test(label) Add initial test for constructor
* test(label) Add tests for recolor
* cleanup(label): lv_label_event
* test(label) set text tests
* test(label) Add tests for lv_label_get_letter_pos
* chore(label) Const where possible in lv_label_get_letter_pos
* test(label) Add tests for lv_label_is_char_under_pos
* chore(label) Add const when possible to lv_label_is_char_under_pos
* test(label) Add simple test for lv_label_cut_text
* chore(label) Cleanup lv_label_revert_dots a bit
* test(label) Make tests pass on Build OPTIONS_MINIMAL_MONOCHROME
* test(label) Initial tests for lv_label_get_letter_on
* chore(label) Introduce calculate_x_coordinate helper
* chore(label) Use calculate_x_coordinate in lv_label_get_letter_on
* chore(label) Reduce varible scope in lv_label_get_letter_on
* chore(label) Use calculate_x_coordinate in lv_label_get_letter_pos
This also reduces complexity of lv_label_get_letter_pos from 21 to 19 (measured using python package 'ravioli')
* chore(label) Remove extra lv_anim_set_exec_cb on lv_label_refr_text
* chore(label) Minor edits on docs
* test(label): Remove unfinished tests
* test(label): Add tests for text selection
* Update lv_label.c
Fix formatting
Squareline Studio can automatically put the generated C files into `ui` folder, so that rt-thread will automatically detect them; or, as a user, you can move the generated C files into `ui` folder manually.
..\lvgl/src/others/ime/lv_ime_pinyin.h(144): warning: #1-D: last line of file ends without a newline
Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
* Update lv_textarea.h
add uint32_t lv_textarea_get_right_char(lv_obj_t * obj); //Get a the right character from the current cursor position
* Update lv_textarea.c
Add uint32_t lv_textarea_get_right_char(lv_obj_t * obj); Get a the right character from the current cursor position
* Add uint32_t lv_textarea_get_right_char(lv_obj_t * obj); /* Get a the right character from the current cursor position */Y
* Rename name to 'lv_textarea_get_current_char(..)' and modify 'int' to 'uint32_t'
Co-authored-by: root <root@localhost.localdomain>
In fact, the use of lv_ime_pinyin does not need to use the lv_ime_pinyin object itself, so we decided to hide it to avoid some other unnecessary problems.