Get btn index without providing list object

This commit is contained in:
Brian Pugh
2019-01-12 12:08:41 -08:00
parent 8a3b60e0c5
commit bd30245492
2 changed files with 6 additions and 2 deletions

View File

@@ -232,7 +232,7 @@ lv_obj_t * lv_list_get_next_btn(const lv_obj_t * list, lv_obj_t * prev_btn);
/**
* Get the index of the button in the list
* @param list pointer to a list object
* @param list pointer to a list object. If NULL, assumes btn is part of a list.
* @param btn pointer to a list element (button)
* @return the index of the button in the list, or -1 of the button not in this list
*/