mirror of
https://github.com/lvgl/lvgl.git
synced 2026-06-01 00:51:49 +08:00
fix(list): use for icon
This commit is contained in:
@@ -73,7 +73,7 @@ lv_obj_t * lv_list_add_text(lv_obj_t * list, const char * txt)
|
||||
return obj;
|
||||
}
|
||||
|
||||
lv_obj_t * lv_list_add_btn(lv_obj_t * list, const char * icon, const char * txt)
|
||||
lv_obj_t * lv_list_add_btn(lv_obj_t * list, const void * icon, const char * txt)
|
||||
{
|
||||
LV_LOG_INFO("begin");
|
||||
lv_obj_t * obj = lv_obj_class_create_obj(&lv_list_btn_class, list);
|
||||
|
||||
@@ -37,7 +37,7 @@ lv_obj_t * lv_list_create(lv_obj_t * parent);
|
||||
|
||||
lv_obj_t * lv_list_add_text(lv_obj_t * list, const char * txt);
|
||||
|
||||
lv_obj_t * lv_list_add_btn(lv_obj_t * list, const char * icon, const char * txt);
|
||||
lv_obj_t * lv_list_add_btn(lv_obj_t * list, const void * icon, const char * txt);
|
||||
|
||||
const char * lv_list_get_btn_text(lv_obj_t * list, lv_obj_t * btn);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user