* test(switch): Add test file and state at creation test
* test(switch): Event handler called only once per click
* test(switch): Add test state change when event bubbling is enabled
* test(switch): Cleanup event bubbling test
* tests(switch): Update memory test and add basic animation test
* test(switch) Add helper to click on switch
* test(switch) Add basic test for knob size calculation
* misc(switch) Replace switch knob rounding error magic number with define
* test(switch) Improve animation test
Properly wait for 50ms after clicking on the switch using lv_test_indev_wait and also assert on switch state after the first and second clicks
* test(switch) cleanup
* misc(switch) Cleanup
* switch: Expose _LV_SWITCH_KNOB_EXT_AREA_CORRECTION value
So we can use it when testing extra draw size
* fix(refr): avoid swapping buffers every area in direct mode
* Update src/core/lv_refr.c
* Update src/core/lv_refr.c
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
* Add support for ARGB32 to RGBA5658 format conversion required by LVGL
* Add animation control for rlottie animation
* Add support for composable play control and event sending upon reaching end of animation.
* Add protection against multiple event posting upon animation ending
* Actually pause the timer is the animation is paused. Resume on playing again.
* Improve documentation for the additional features
* Stop the timer if not looping and we've reached the end of the animation in the provided direction
* Fix various defects and improve documentation
* Add support for swapped RGB565 format too
* Let pause actually pause without messing the current frame index in the animation.
* Set invalid destination frame upon construction so it's possible to pause from frame 0.
* Set impossible destination frame index
So it's updated on first pause
* fix(lv_hal_indev): update lv_indev_drv_update to free the read_timer
The read timer was not freed and recreated. The display was also not checked to be NULL.
* fix(lv_hal_indev): update lv_indev_drv_update to free the read_timer (fix formatting)
* fix(lv_hal_indev): update lv_indev_drv_update to free the read_timer (fix formatting 2)
* migrated to use new backend architecture
* formatted code
* with direct_mode blend coordinates are working now
* added draw_img_core to backend
* moving from gpu/sdl to draw/sdl
* updated format
* updated format
* fixed include path
* fixing build issue
* fix(format): run code-format.sh
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(astyle): add the 3rd party source file to exclude list
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(built_in_font_gen.py): change the output format from bin to lvgl
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(generate_all.py): improve the builtin font generation
1.run astyle on the generated source files
2.copy these files to src/font folder
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(font): regenerate all builtin font files
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(misc): avoid ;; after LV_ASSERT_STYLE/LV_ASSERT_OBJ
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(style_api_gen.py): remove the unused docs_prop_cnt variable
and remove the trailing space
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(style_api_gen.py): ensure the generated code follow the coding style
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(style_api_gen.py): ensure props has the same order of lv_style_prop_t
and correct the style flags
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* adding font type check
* using theme specified font
supports freetype drawing
* adding font type check
* using theme specified font
supports freetype drawing
* freetype fallback font support
* improved fallback font
* updated fallback font modifier
* docs(events) LV_EVENT_APPLY was removed (#2791)
* reverted to default font logic
* removed unused function
* improved font fallback
* font fallback for default lv_draw_letter as well
* added back masked drawing support
* fallback support for freetype uncached
* updated description
* fixed constructor initialization for ISO C
* reverted unneeded changes
* using loop instead of recursion to resolve glyph info
* simplified glyph dec resolving
* removed unused enum value
* improved lv_font_fmt_ft_dsc_t field naming
* supports pointer as freetype font source
* Updated docs for font fallback
Co-authored-by: Vincent Hamp <higaski@users.noreply.github.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
* fix(conf): ensure the template and generated file conform the coding style
and remove lv_conf_internal.h from the excluding list of code-format.cfg
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(conf): regenerate lv_conf_internal.h
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(lv_symbol_def.h): LV_SYMBOL_xxx by the encode order
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(lv_symbol_def.h): change the hex number to upper case
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
* fix(font): Keep the LV_FONT_DECLARE order same as LV_FONT_xxxx
and correct the comment and format
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Add or delete event callback in lv_obj_event_base, the
address of event_dsc will change, causing crash.
Change-Id: I3085a077826e4c132f8f5088d31cad1d0ffd3b9f