Commit Graph

60 Commits

Author SHA1 Message Date
Gabor Kiss-Vamosi
428db9494d fix(coords) fix using large coordinates
Fixes #2323
2021-06-17 11:32:49 +02:00
Gabor Kiss-Vamosi
33e433008e chore(assert) add warnign about higher memory usage if LV_USE_ASSERT_STYLE is enabled 2021-06-14 11:07:52 +02:00
Gabor Kiss-Vamosi
e697807cf5 fix(typo) rename LV_OBJ_FLAG_SNAPABLE to LV_OBJ_FLAG_SNAPPABLE 2021-06-09 16:05:39 +02:00
Gabor Kiss-Vamosi
3b58ef14e5 fix(btnmamatrix) fix focus event handling 2021-06-02 14:21:15 +02:00
Gabor Kiss-Vamosi
4780beae01 fix(obj) fix invalidation of objects on state change 2021-05-28 14:10:12 +02:00
Gabor Kiss-Vamosi
0a70280177 feat(scroll) add scrollbar styling example + allow for the scrollbar using shadow 2021-05-26 22:05:32 +02:00
Gabor Kiss-Vamosi
5331fc9fb5 feat make some other structs private 2021-05-23 13:09:58 +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
94a47dc6d9 refactor(event) simplify cover check realted event functions 2021-05-15 00:14:31 +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
b8557f2432 fix(dropdown) fix list width calculation 2021-05-07 21:53:45 +02:00
Gabor Kiss-Vamosi
6cb28da8e9 perf(coord. refr.): imrove the speed of layout, size and position recalculation
Reduce the number of refreshes.
2021-05-05 15:53:54 +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
9b067784ee fix(obj) fix adding LV_STATE_FOCUS_KEY 2021-05-03 12:47:22 +02:00
Gabor Kiss-Vamosi
e1e45b1de3 fix(btnmatrix) improve focusing if used in groups 2021-05-03 11:14:25 +02:00
Gabor Kiss-Vamosi
d8e76f5d68 fix(obj_style) fix style transitions if they not affect the main part 2021-05-02 21:05:23 +02:00
Gabor Kiss-Vamosi
607316d723 remove unused variable 2021-04-26 16:55:57 +02:00
Gabor Kiss-Vamosi
e06e7b5e5d fix(event) fire LV_EVENT_VALUE_CHANGED if the object is checked when LV_OBJ_FLAG_CHECKABLE is enabled 2021-04-26 16:55:25 +02:00
Gabor Kiss-Vamosi
2d00a3fc17 feat(obj) remove LV_OBJ_FLAG_FOCUS_BUBBLE as it can be easily mimiced by events 2021-04-24 21:35:05 +02:00
Gabor Kiss-Vamosi
38b4ff6b4c refactor(event) move event related functions to a dedicated file (core/lv_event.c/h) 2021-04-24 17:04:12 +02:00
Gabor Kiss-Vamosi
eaed66057b refactor(style) rename LV_STYLE_PROP_ALL to LV_STYLE_PROP_ANY 2021-04-23 10:35:36 +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
663f8c2672 fix(style) rename path_cb to to path_xcb in lv_style_transition_dsc_t
This way the MicroPython won't allow manually setting this field.
And it can't be set manually becasue the user data needs to be set too.
So lv_style_transition_dsc_init() should be used to initialize the fields of lv_style_transition_dsc_t
2021-04-21 09:02:39 +02:00
Gabor Kiss-Vamosi
4b0c85426a feat(lv_init) check if LV_BIG_ENDIAN_SYSTEM is enabled on big endian systems 2021-04-20 14:57:56 +02:00
Gabor Kiss-Vamosi
bbfcb2454e feat(event) add event filter to lv_event_send 2021-04-19 11:15:28 +02:00
Gabor Kiss-Vamosi
1c53d26bcc feat(event) add lv_obj_remove_event_dsc and remove user_data from lv_obj_remove_event_cb 2021-04-19 10:02:16 +02:00
Gabor Kiss-Vamosi
6db12e4997 revert(style) revert the usage of transform width/height 2021-04-18 20:28:06 +02:00
Gabor Kiss-Vamosi
da367337c9 feat(anim) remove lv_anim_path_t and use a callback directly
lv_anim_path_t was required for the MicroPython binding becase the callback couldn't attached dircetly to the styles
However, in v8, path_cb is used in the style transitons which has user_data and that user data is passed to the transition animation. Hence the path_cb sees the the same user data during the animaton as when it was registered to the transiton.
2021-04-17 20:50:10 +02:00
Gabor Kiss-Vamosi
e1355dbeee feat(style) add transform_x/y 2021-04-17 17:33:57 +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
f0d41222f7 minor refactoring, commenting 2021-04-13 13:24:53 +02:00
Gabor Kiss-Vamosi
c587fc4d2a fix(obj) move lv_event_dsc_t into lv_obj.c from lv_obj.h
It keeps the list of global types shorter
2021-04-12 12:42:51 +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
5c991aaf71 solve conflicts 2021-03-31 19:58:53 +02:00
Gabor Kiss-Vamosi
663bcfd030 api(style) add lv_style_selector_t instead of lv_part_t and lv_state_t in style API 2021-03-31 19:57:14 +02:00
Meco Man
a8c21f8e18 fix(style): auto formatted 2021-04-01 01:06:43 +08:00
Gabor Kiss-Vamosi
722f1ca689 fix(obj) force layout recalculation on style change 2021-03-29 18:24:23 +02:00
Gabor Kiss-Vamosi
0e0393539e fix(extra): add lv_extra.c/h for lv_extra_init() 2021-03-26 11:45:28 +01:00
Gabor Kiss-Vamosi
415c114be6 fix(align) refresh position on size change 2021-03-25 20:53:45 +01:00
Gabor Kiss-Vamosi
63bc72e53a minor fixes 2021-03-25 19:59:23 +01:00
Gabor Kiss-Vamosi
35c55291e3 Merge branch 'master' of https://github.com/littlevgl/lvgl 2021-03-25 19:42:37 +01:00
Gabor Kiss-Vamosi
a2f3022188 api(align) save align in style and handle x/y according to it 2021-03-25 16:14:17 +01: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
Xiang Xiao
8dd3c76305 fix(build): remove lv_ prefix from path 2021-03-23 23:30:32 +08:00
Xiang Xiao
e7cc4bc180 fix(format): remove 0x prefix from %p (#2151)
* fix(format): remove 0x prefix from %p

since %p already add this prefix automatically

* fix(printf): make %p more compatible with the standard
2021-03-21 16:50:49 +01:00
Gabor Kiss-Vamosi
ac3fa78718 minor fixes 2021-03-19 13:00:21 +01:00