Searched refs:old_parent (Results 1 – 1 of 1) sorted by relevance
146 lv_obj_t * old_parent = obj->parent; in lv_obj_set_parent() local149 for(i = lv_obj_get_index(obj); i <= (int32_t)lv_obj_get_child_cnt(old_parent) - 2; i++) { in lv_obj_set_parent()150 old_parent->spec_attr->children[i] = old_parent->spec_attr->children[i + 1]; in lv_obj_set_parent()152 old_parent->spec_attr->child_cnt--; in lv_obj_set_parent()153 if(old_parent->spec_attr->child_cnt) { in lv_obj_set_parent()154 old_parent->spec_attr->children = lv_mem_realloc(old_parent->spec_attr->children, in lv_obj_set_parent()155 … old_parent->spec_attr->child_cnt * (sizeof(lv_obj_t *))); in lv_obj_set_parent()158 lv_mem_free(old_parent->spec_attr->children); in lv_obj_set_parent()159 old_parent->spec_attr->children = NULL; in lv_obj_set_parent()171 lv_obj_scrollbar_invalidate(old_parent); in lv_obj_set_parent()[all …]