feat(obj) add lv_obj_swap() function (#2461)

* proposal for lv_obj_swap() function

* review issues applied

* review changes for comments
This commit is contained in:
Karijn Wessing
2021-08-18 11:32:10 +02:00
committed by GitHub
parent 36ddbd0756
commit 9a1f7f2fcb
8 changed files with 153 additions and 1 deletions

View File

@@ -69,6 +69,8 @@ for(i = 0; i < lv_obj_get_child_cnt(parent); i++) {
You can bring an object to the foreground or send it to the background with `lv_obj_move_foreground(obj)` and `lv_obj_move_background(obj)`.
You can swap the position of two objects with `lv_obj_swap(obj1, obj2)`.
### Screens
When you have created a screen like `lv_obj_t * screen = lv_obj_create(NULL)`, you can load it with `lv_scr_load(screen)`. The `lv_scr_act()` function gives you a pointer to the current screen.