mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
commit
5e9dd93e76
@ -200,14 +200,14 @@ lv_obj_t * lv_tabview_create(lv_obj_t * par, const lv_obj_t * copy)
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete all children of the scrl object, without deleting scrl child.
|
||||
* @param tabview pointer to an object
|
||||
* Delete all children of a tab created by `lv_tabview_add_tab`.
|
||||
* @param tab pointer to a tab
|
||||
*/
|
||||
void lv_tabview_clean(lv_obj_t * tabview)
|
||||
void lv_tabview_clean(lv_obj_t * tab)
|
||||
{
|
||||
LV_ASSERT_OBJ(tabview, LV_OBJX_NAME);
|
||||
LV_ASSERT_OBJ(tab, "lv_page");
|
||||
|
||||
lv_obj_t * scrl = lv_page_get_scrl(tabview);
|
||||
lv_obj_t * scrl = lv_page_get_scrl(tab);
|
||||
lv_obj_clean(scrl);
|
||||
}
|
||||
|
||||
|
@ -93,10 +93,10 @@ typedef uint8_t lv_tabview_style_t;
|
||||
lv_obj_t * lv_tabview_create(lv_obj_t * par, const lv_obj_t * copy);
|
||||
|
||||
/**
|
||||
* Delete all children of the scrl object, without deleting scrl child.
|
||||
* @param tabview pointer to an object
|
||||
* Delete all children of a tab created by `lv_tabview_add_tab`.
|
||||
* @param tab pointer to a tab
|
||||
*/
|
||||
void lv_tabview_clean(lv_obj_t * tabview);
|
||||
void lv_tabview_clean(lv_obj_t * tab);
|
||||
|
||||
/*======================
|
||||
* Add/remove functions
|
||||
|
Loading…
x
Reference in New Issue
Block a user