Home
last modified time | relevance | path

Searched refs:lv_obj_get_index (Results 1 – 14 of 14) sorted by relevance

/lvgl-latest/tests/src/test_cases/widgets/
Dtest_obj_tree.c57 TEST_ASSERT_EQUAL(lv_obj_get_index(child1), 0); in test_obj_tree_3()
61 TEST_ASSERT_EQUAL(lv_obj_get_index(child2), 0); in test_obj_tree_3()
76 TEST_ASSERT_EQUAL(lv_obj_get_index(child2), 0); in test_obj_tree_3()
80 TEST_ASSERT_EQUAL(lv_obj_get_index(child1), 0); in test_obj_tree_3()
100 TEST_ASSERT_EQUAL(1, lv_obj_get_index(child1)); in test_obj_move_to_index_move_to_the_background()
101 TEST_ASSERT_EQUAL(0, lv_obj_get_index(child2)); in test_obj_move_to_index_move_to_the_background()
116 lv_obj_move_to_index(child1, lv_obj_get_index(child1) - 1); in test_obj_move_to_index_move_forward()
118 TEST_ASSERT_EQUAL(1, lv_obj_get_index(child1)); in test_obj_move_to_index_move_forward()
119 TEST_ASSERT_EQUAL(0, lv_obj_get_index(child2)); in test_obj_move_to_index_move_forward()
133 TEST_ASSERT_EQUAL_INT32(0xFFFFFFFF, lv_obj_get_index(child1)); in test_obj_move_to_index_no_operation_when_parent_is_null()
[all …]
Dtest_dropdown.c441 TEST_ASSERT_EQUAL_INT(2, lv_obj_get_index(list)); in test_dropdown_should_list_on_top()
/lvgl-latest/src/core/
Dlv_obj_tree.c169 for(i = lv_obj_get_index(obj); i <= (int32_t)lv_obj_get_child_count(old_parent) - 2; i++) { in lv_obj_set_parent()
217 const int32_t old_index = lv_obj_get_index(obj); in lv_obj_move_to_index()
261 uint_fast32_t index1 = lv_obj_get_index(obj1); in lv_obj_swap()
262 uint_fast32_t index2 = lv_obj_get_index(obj2); in lv_obj_swap()
382 int32_t sibling_idx = (int32_t)lv_obj_get_index(obj) + idx; in lv_obj_get_sibling()
419 int32_t lv_obj_get_index(const lv_obj_t * obj) in lv_obj_get_index() function
579 int32_t id = lv_obj_get_index(obj); in obj_delete_core()
Dlv_obj_tree.h203 int32_t lv_obj_get_index(const lv_obj_t * obj);
Dlv_obj.c170 .getter = lv_obj_get_index,
/lvgl-latest/examples/widgets/win/
Dlv_example_win_1.c8 LV_LOG_USER("Button %d clicked", (int)lv_obj_get_index(obj)); in event_handler()
/lvgl-latest/examples/widgets/list/
Dlv_example_list_2.c51 uint32_t index = lv_obj_get_index(currentButton); in event_handler_up()
78 const uint32_t index = lv_obj_get_index(currentButton); in event_handler_dn()
/lvgl-latest/examples/others/observer/
Dlv_example_observer_4.c169 uint32_t idx = lv_obj_get_index(btn); in btn_click_event_cb()
179 int32_t idx = (int32_t)lv_obj_get_index(btn); in btn_observer_cb()
/lvgl-latest/examples/widgets/checkbox/
Dlv_example_checkbox_2.c22 *active_id = lv_obj_get_index(act_cb); in radio_event_handler()
/lvgl-latest/demos/ebike/
Dlv_demo_ebike.c180 uint32_t idx = lv_obj_get_index(icon); in menu_item_click_event_cb()
/lvgl-latest/demos/music/
Dlv_demo_music_list.c234 uint32_t idx = lv_obj_get_index(btn); in btn_click_event_cb()
/lvgl-latest/tests/src/test_cases/
Dtest_bindings.c220 uint32_t idx = lv_obj_get_index(btn); in list_button_create()
/lvgl-latest/docs/details/base-widget/
Dlayer.rst69 …e top, to move forward (up): :cpp:expr:`lv_obj_move_to_index(widget, lv_obj_get_index(widget) - 1)`
Dobj.rst124 :cpp:expr:`lv_obj_get_index(widget)` returns the index of the Widget in its parent.