Home
last modified time | relevance | path

Searched refs:parent2 (Results 1 – 2 of 2) sorted by relevance

/lvgl-latest/tests/src/test_cases/widgets/
Dtest_obj_tree.c44 lv_obj_t * parent2 = lv_obj_create(lv_screen_active()); in test_obj_tree_3() local
46 lv_obj_t * child2 = lv_obj_create(parent2); in test_obj_tree_3()
53 TEST_ASSERT_EQUAL(child2_parent_before, parent2); in test_obj_tree_3()
60 TEST_ASSERT_EQUAL(lv_obj_get_child_count(parent2), 1); in test_obj_tree_3()
62 TEST_ASSERT_EQUAL(lv_obj_get_child(parent2, 0), child2); in test_obj_tree_3()
71 TEST_ASSERT_EQUAL(child1_parent_after, parent2); in test_obj_tree_3()
79 TEST_ASSERT_EQUAL(lv_obj_get_child_count(parent2), 1); in test_obj_tree_3()
81 TEST_ASSERT_EQUAL(lv_obj_get_child(parent2, 0), child1); in test_obj_tree_3()
/lvgl-latest/src/core/
Dlv_obj_tree.c259 lv_obj_t * parent2 = lv_obj_get_parent(obj2); in lv_obj_swap() local
264 lv_obj_send_event(parent2, LV_EVENT_CHILD_DELETED, obj2); in lv_obj_swap()
270 parent2->spec_attr->children[index2] = obj1; in lv_obj_swap()
271 obj1->parent = parent2; in lv_obj_swap()
275 lv_obj_send_event(parent2, LV_EVENT_CHILD_CHANGED, obj1); in lv_obj_swap()
276 lv_obj_send_event(parent2, LV_EVENT_CHILD_CREATED, obj1); in lv_obj_swap()
280 if(parent != parent2) { in lv_obj_swap()
281 lv_obj_invalidate(parent2); in lv_obj_swap()