1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

fix comment of lv_tabview_clean

This commit is contained in:
Gabor Kiss-Vamosi 2020-04-29 11:17:42 +02:00
parent 271ec3f6ee
commit af5ed425c0
2 changed files with 8 additions and 8 deletions

View File

@ -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);
}

View File

@ -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