1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

27 Commits

Author SHA1 Message Date
Xiang Xiao
4c4f954059
chore(style): remove the trailing space from all source files (#3188)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-21 11:25:51 +01:00
embeddedt
9771050b99
chore(format) add formatting for examples & demos, merge test config 2022-02-13 13:59:17 -05:00
Gabor Kiss-Vamosi
62fc7123f1 feat(gridnav): add lv_gridnav (#2911)
* add first implememtation

* Update src/extra/others/gridnav/lv_gridnav.c

Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>

* minor fix

* add example and minor fixes

* add more examples

* add more examples

* code formatting

* add LV_GRIDNAC_CTRL_SCROLL_FIRST

* code formatting

* add example for list

* add docs

* Misc:  improvements to gridnav docs (#2994)

Co-authored-by: embeddedt <42941056+embeddedt@users.noreply.github.com>
Co-authored-by: Ken Carpenter <62639971+FoundationKen@users.noreply.github.com>
2022-01-20 10:29:40 +01:00
Karijn Wessing
953d9fb003
feat(example) add lv example list 2 (#2545)
* added micropython sample for obj.move_to_index(index)

* formatting update

* added lv.group_remove_obj(btn) for command buttons

* updated CHANGELOG.md
2021-09-13 17:41:25 +02:00
Karijn Wessing
780e0efe2c
feat(obj) add lv_obj_move_to_index(obj, index), renamed lv_obj_get_child_id(obj) to lv_obj_get_index(obj) (#2514)
* - renamed lv_obj_get_id(obj) to lv_obj_get_index(obj).

- added lv_obj_move_to_index(obj, index).

* automatic review comment fixed

* removed unused variable

* review issue

* restored deprecated function in header, otherwise Build Micropython with LVGL submodule / build (pull_request)  failes

* moved deprecated lv_obj_get_child_id() back to lv_obj_tree.h, otherwise Micropython will not build

* inline function did not work

* made deprecated function 'static inline'

* and now also inline

* move static inline function to lv_api_map.h again

* removed lv_obj_move_up/down

* changed log to warning for deprecated function

* redefined lv_obj_move_foreground(obj) and lv_obj_move_background(obj) as inline functions now calling lv_obj_move_to_index(obj, index).

- lv_obj_swap(obj1, obj2) added. (#2461)
2021-09-05 20:47:55 +02:00
Karijn Wessing
e111ea2a62
added lv_obj_move_up() and lv_obj_move_down() (#2467)
* - small with unneeded lv_obj_invalidate()  fix in lv_obj_move_foreground() and lv_obj_move_background()

- added lv_obj_move_up() and lv_obj_move_down()
- used new functions in sample 2
- used lv_obj_swap() to shuffle (turn around) list

* solved build error

* added top and bottom buttons in sample
2021-08-24 14:30:38 +02:00
Gabor Kiss-Vamosi
a9971471ba fix(group) keep the focused object in lv_group_swap_obj
fixes #2462
2021-08-19 21:12:09 +02:00
Gabor Kiss-Vamosi
bb6d6b7799 chore(example) minor improvements on lv_example_list_2 2021-08-18 14:28:02 +02:00
Karijn Wessing
9a1f7f2fcb
feat(obj) add lv_obj_swap() function (#2461)
* proposal for lv_obj_swap() function

* review issues applied

* review changes for comments
2021-08-18 11:32:10 +02:00
Amir Gonnen
c751c11a87
fix(examples) remove cast in MP scripts (#2354)
After https://github.com/lvgl/lv_binding_micropython/pull/161 merged, it is no longer needed to cast the result of 'e.get_target()'

Also, additional small fixes to allow CI improvements
2021-07-07 17:04:46 +02:00
Amir Gonnen
4114dc30e8
fix(examples) fix MicroPython examples and run the examples with CI (#2339)
* Fixes to micropython examples

Added missing images and fonts under 'assets'. Since .bin is in gitignore, renamed fonts to .fnt

* Update build_micropython workflow

Build the unix port dev variant and run tests.

See: https://github.com/lvgl/lv_binding_micropython/issues/151
2021-07-01 14:37:57 +02:00
Themba Dube
6f37c4fc56 docs(examples) add MicroPython examples 2021-06-11 16:48:27 -04:00
Uli Raich
c60ed68e94
adding micropython examples (#2286)
* adding micropython examples

* adding micropython examples
2021-06-07 13:56:08 +02:00
Gabor Kiss-Vamosi
98c3c8eb5c fix some examples 2021-05-27 15:12:50 +02:00
Gabor Kiss-Vamosi
4f8e3a38b3 feat(list, win) remove event_cb paramter from *_add_btn() functions
It was difficult to handle in the Micropython binding and the user can add events to the returned button in a more flexible way
2021-05-13 00:42:52 +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
20803031e8 fix(test) fix tests 2021-04-08 13:07:48 +02: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
Gabor Kiss-Vamosi
df5a47871d add some logs 2021-02-28 15:02:00 +01:00
Gabor Kiss-Vamosi
bdef0c3b8b feat(obj): add LV_OBJ_FLAG_FLOATING and lv_obj_has_flag_any 2021-02-28 14:18:32 +01:00
Gabor Kiss-Vamosi
ca4f11e9f4 add the prototypes of the examples 2021-02-19 18:19:32 +01:00
Gabor Kiss-Vamosi
bb08660cb6 minor fixes 2021-02-14 14:56:34 +01:00
Gabor Kiss-Vamosi
7bec13c2b9 update asserts 2021-02-08 09:53:03 +01:00
Gabor Kiss-Vamosi
956a367dbc refactoring 2021-02-07 22:39:54 +01:00
Gabor Kiss-Vamosi
8a1af8646f add lv_components as src/extra and minor fixes 2021-02-04 14:46:11 +01:00