Adds sub-object specific clean functions to prevent breaking with lv_obj_clean
This commit is contained in:
@@ -133,6 +133,16 @@ lv_obj_t * lv_list_create(lv_obj_t * par, lv_obj_t * copy)
|
||||
return new_list;
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete all children of the scrl object, without deleting scrl child.
|
||||
* @param obj pointer to an object
|
||||
*/
|
||||
void lv_list_clean(lv_obj_t *obj)
|
||||
{
|
||||
lv_obj_t *scrl = lv_page_get_scrl(obj);
|
||||
lv_obj_clean(scrl);
|
||||
}
|
||||
|
||||
/*======================
|
||||
* Add/remove functions
|
||||
*=====================*/
|
||||
|
||||
Reference in New Issue
Block a user