diff --git a/lv_objx/lv_list.h b/lv_objx/lv_list.h index f6db5d4cb..74026a7e3 100644 --- a/lv_objx/lv_list.h +++ b/lv_objx/lv_list.h @@ -121,10 +121,11 @@ bool lv_list_remove(const lv_obj_t * list, uint32_t index); *====================*/ /** - * Make a single button selected in the list, deselect others, should be called in list btns call back. - * @param btn pointer to the currently pressed list btn object + * Set single button selected mode, only one button will be selected if enabled. + * @param list pointer to the currently pressed list object + * @param mode, enable(true)/disable(false) single selected mode. */ -void lv_list_set_btn_single_selected(lv_obj_t *btn); +void lv_list_set_btn_single_selected_mode(lv_obj_t *list, bool mode); #if USE_LV_GROUP @@ -175,6 +176,12 @@ void lv_list_set_style(lv_obj_t *list, lv_list_style_t type, lv_style_t *style); * Getter functions *====================*/ +/** + * Get single button selected mode. + * @param list pointer to the currently pressed list object. + */ +bool lv_list_get_btn_single_selected_mode(lv_obj_t *list); + /** * Get the text of a list element * @param btn pointer to list element