diff --git a/lib/libesp32_lvgl/lv_berry/generate/be_lv_c_mapping.h b/lib/libesp32_lvgl/lv_berry/generate/be_lv_c_mapping.h index 175d8a954..8cacaa260 100644 --- a/lib/libesp32_lvgl/lv_berry/generate/be_lv_c_mapping.h +++ b/lib/libesp32_lvgl/lv_berry/generate/be_lv_c_mapping.h @@ -197,6 +197,7 @@ const be_ntv_func_def_t lv_obj_func[] = { { "fade_out", (void*) &lv_obj_fade_out, "", "(lv.lv_obj)ii" }, { "get_child", (void*) &lv_obj_get_child, "lv.lv_obj", "(lv.lv_obj)i" }, { "get_child_cnt", (void*) &lv_obj_get_child_cnt, "i", "(lv.lv_obj)" }, + { "get_child_id", (void*) &lv_obj_get_child_id, "i", "(lv.lv_obj)" }, { "get_class", (void*) &lv_obj_get_class, "lv.lv_obj_class", "(lv.lv_obj)" }, { "get_click_area", (void*) &lv_obj_get_click_area, "", "(lv.lv_obj)(lv.lv_area)" }, { "get_content_coords", (void*) &lv_obj_get_content_coords, "", "(lv.lv_obj)(lv.lv_area)" }, @@ -353,7 +354,9 @@ const be_ntv_func_def_t lv_obj_func[] = { { "is_valid", (void*) &lv_obj_is_valid, "b", "(lv.lv_obj)" }, { "is_visible", (void*) &lv_obj_is_visible, "b", "(lv.lv_obj)" }, { "mark_layout_as_dirty", (void*) &lv_obj_mark_layout_as_dirty, "", "(lv.lv_obj)" }, + { "move_background", (void*) &lv_obj_move_background, "", "(lv.lv_obj)" }, { "move_children_by", (void*) &lv_obj_move_children_by, "", "(lv.lv_obj)iib" }, + { "move_foreground", (void*) &lv_obj_move_foreground, "", "(lv.lv_obj)" }, { "move_to", (void*) &lv_obj_move_to, "", "(lv.lv_obj)ii" }, { "move_to_index", (void*) &lv_obj_move_to_index, "", "(lv.lv_obj)i" }, { "readjust_scroll", (void*) &lv_obj_readjust_scroll, "", "(lv.lv_obj)(lv.lv_anim_enable)" }, diff --git a/lib/libesp32_lvgl/lv_berry/generate/be_lvgl_widgets_lib.c b/lib/libesp32_lvgl/lv_berry/generate/be_lvgl_widgets_lib.c index a873bc309..b0eb9efe0 100644 --- a/lib/libesp32_lvgl/lv_berry/generate/be_lvgl_widgets_lib.c +++ b/lib/libesp32_lvgl/lv_berry/generate/be_lvgl_widgets_lib.c @@ -517,6 +517,9 @@ extern int lvbe_obj_get_style_grid_cell_row_pos(bvm *vm); extern int lvbe_obj_get_style_grid_cell_row_span(bvm *vm); extern int lvbe_obj_get_style_grid_cell_x_align(bvm *vm); extern int lvbe_obj_get_style_grid_cell_y_align(bvm *vm); +extern int lvbe_obj_move_foreground(bvm *vm); +extern int lvbe_obj_move_background(bvm *vm); +extern int lvbe_obj_get_child_id(bvm *vm); /* `lv_group` external functions definitions */ extern int lvbe_group_create(bvm *vm); diff --git a/lib/libesp32_lvgl/lv_berry/mapping/lv_funcs.h b/lib/libesp32_lvgl/lv_berry/mapping/lv_funcs.h index 85309fbf8..173dc3d8e 100644 --- a/lib/libesp32_lvgl/lv_berry/mapping/lv_funcs.h +++ b/lib/libesp32_lvgl/lv_berry/mapping/lv_funcs.h @@ -687,6 +687,12 @@ void lv_spinbox_decrement(lv_obj_t * obj) // ../../lvgl/src/extra/widgets/spinner/lv_spinner.h lv_obj_t * lv_spinner_create(lv_obj_t * parent, uint32_t time, uint32_t arc_length) +// ../../lvgl/src/lv_api_map.h +static inline LV_ATTRIBUTE_TIMER_HANDLER uint32_t lv_task_handler(void) +static inline void lv_obj_move_foreground(lv_obj_t * obj) +static inline void lv_obj_move_background(lv_obj_t * obj) +static inline uint32_t lv_obj_get_child_id(const struct _lv_obj_t * obj) + // ../../lvgl/src/misc/lv_style_gen.h void lv_style_set_width(lv_style_t * style, lv_coord_t value) void lv_style_set_min_width(lv_style_t * style, lv_coord_t value) diff --git a/lib/libesp32_lvgl/lv_berry/tools/preprocessor.py b/lib/libesp32_lvgl/lv_berry/tools/preprocessor.py index 78f5d1301..5277bbbbd 100644 --- a/lib/libesp32_lvgl/lv_berry/tools/preprocessor.py +++ b/lib/libesp32_lvgl/lv_berry/tools/preprocessor.py @@ -50,6 +50,7 @@ def clean_source(raw): lv_src_prefix = "../../lvgl/src/" lv_fun_globs = [ + "lv_api*.h", "widgets/*.h", # all widgets # "extra/widgets/*/*.h", "extra/widgets/chart/*.h",