Gabor Kiss-Vamosi
0921dfc8cd
fix(switch): make knob height calculation similar to slider
...
That is use the switch's full height without padding as default knob height
2022-01-18 11:25:23 +01:00
Gabor Kiss-Vamosi
db53ea925c
arch(draw): allow replacing the draw engine
...
BREAKING CHANGE: the API of lv_draw_... function have been changed
2021-12-21 15:54:22 +01:00
Carlos Diaz
559c2cdc9e
test(switch): add initial unit test ( #2794 )
...
* 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
2021-12-07 13:49:26 +01:00
Gabor Kiss-Vamosi
d67dd943ca
format run code-formtter.sh
...
related to #2543
2021-09-13 14:06:26 +02:00
Xiang Xiao
9fc0c3cf98
fix(lv_log.h): remove the duplicated semicolon from LV_LOG_xxx ( #2544 )
...
and fix the caller who forget to add semicolon at the line end
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-09-09 15:34:36 +02:00
embeddedt
8ae894ebd4
feat(switch) add smooth animation when changing state ( #2442 )
...
* feat(switch) add smooth animation when changing state
* refactor(switch) improve code quality for animation feature
* refactor(switch) flatten animation structure into widget
Co-authored-by: HX2003 <HX2003@users.noreply.github.com >
2021-08-17 12:33:55 +02:00
Gabor Kiss-Vamosi
713b39ecdb
fix(obj, switch) do not send LV_EVENT_VALUE_CHANGED twice
...
fixes #2330
2021-06-22 10:06:28 +02:00
Gabor Kiss-Vamosi
e2a7f559ab
feat(bidi) make base dir a style property and rename lv_bidi_dir_t to lv_base_dir_t
2021-05-19 20:55:44 +02:00
Gabor Kiss-Vamosi
fb97895746
fix(switch) add LV_OBJ_FLAG_SCROLL_ON_FOCUS
2021-05-11 17:23:54 +02:00
Gabor Kiss-Vamosi
a46f20de91
feat(obj_class) separate lv_obj_class_create_obj into lv_obj_class_create_obj and lv_obj_class_init_obj
...
It allows using the new object reference somewhere before initializing it. Usuful for the Micropython binding.
2021-05-11 13:05:42 +02:00
Gabor Kiss-Vamosi
445c0ea9ae
refactor(obj class) add user_data parameter to lv_obj_class_create_obj()
2021-05-03 14:06:55 +02:00
Gabor Kiss-Vamosi
4f743a7aa8
refactor(obj class) rename lv_obj_create_from_class to lv_obj_class_create_obj
2021-05-03 13:58:20 +02:00
Gabor Kiss-Vamosi
4f46336a54
fix(theme) simplify the default theme
2021-04-28 10:11:26 +02:00
Gabor Kiss-Vamosi
6c863cabb7
feat(obj_class) use different prototype for the event_cb in lv_obj_class_t
...
It adds lv_obj_class_t * as the first arguement for MicroPython compatibility
2021-04-21 09:55:21 +02:00
Gabor Kiss-Vamosi
422c9e5bd6
feat(event) rework the prototype of lv_event_cb
...
It encapsulates all event related parameters into a single lv_event_t obejct.
2021-04-14 15:31:54 +02:00
Gabor Kiss-Vamosi
834e2177e7
fix(obj) add lv_obj_class_t * as first parameter of constructors and destructors
...
It's required for compatibility with the MicroPython binding.
2021-04-13 14:31:21 +02:00
Gabor Kiss-Vamosi
b36345107c
feat(group) add default group
2021-04-08 12:48:48 +02:00
Gabor Kiss-Vamosi
a8f31dab55
feat(widgets) add default sizes to obj_class
2021-04-01 14:11:32 +02:00
Gabor Kiss-Vamosi
53f3cc1827
api(style) remove content style proeprties
2021-03-25 13:36:50 +01:00
Gabor Kiss-Vamosi
b7becbbb22
feat(style): store layout and position coordinates as style properties
...
related to #2152
2021-03-24 15:38:53 +01:00
Gabor Kiss-Vamosi
d83fa19703
minor fixes
2021-03-19 18:03:08 +01:00
Gabor Kiss-Vamosi
c1f8a844bc
style(comment): remove the word signal from the comments
2021-03-18 17:38:42 +01:00
Gabor Kiss-Vamosi
bf2deded51
fix conflicts
2021-03-18 17:31:09 +01:00
Gabor Kiss-Vamosi
03f74ce186
feat(obj): merge draw clallback to events
2021-03-18 17:03:36 +01:00
Gabor Kiss-Vamosi
6b7fe23fb8
feat(obj): merge signals into events
2021-03-18 15:13:35 +01:00
Xiang Xiao
9254a7ea14
fix(comment): remove the space after /* and before */
2021-03-18 11:51:36 +08:00
Gabor Kiss-Vamosi
0cc1e99ddf
remove the lv_ prefix from the directories in the src folder
2021-03-16 20:36:27 +01:00