Update lv_list.h

This commit is contained in:
Samuel
2018-12-07 15:21:35 +08:00
committed by GitHub
parent cde5f31135
commit be8d241e06

View File

@@ -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