Update lv_list.h
This commit is contained in:
@@ -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.
|
* Set single button selected mode, only one button will be selected if enabled.
|
||||||
* @param btn pointer to the currently pressed list btn object
|
* @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
|
#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
|
* 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
|
* Get the text of a list element
|
||||||
* @param btn pointer to list element
|
* @param btn pointer to list element
|
||||||
|
|||||||
Reference in New Issue
Block a user