From 54435fce6038d18617e8b45dacccea647b11ab8c Mon Sep 17 00:00:00 2001 From: Samuel Date: Fri, 9 Nov 2018 20:27:59 +0800 Subject: [PATCH] Update lv_ddlist.h --- lv_objx/lv_ddlist.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lv_objx/lv_ddlist.h b/lv_objx/lv_ddlist.h index 73d42af29..6c1d5b396 100644 --- a/lv_objx/lv_ddlist.h +++ b/lv_objx/lv_ddlist.h @@ -54,9 +54,8 @@ typedef struct uint16_t sel_opt_id_ori; /*Store the original index on focus*/ uint16_t anim_time; /*Open/Close animation time [ms]*/ uint8_t opened :1; /*1: The list is opened (handled by the library)*/ -#if LV_DDLIST_USE_STYLE_INDC != 0 - uint8_t roller_ddlist :1; /*0: The list is roller, otherwise ddlist*/ -#endif + uint8_t draw_arrow :1; /*1: Draw arrow*/ + lv_coord_t fix_height; /*Height of the ddlist when opened. (0: auto-size)*/ } lv_ddlist_ext_t; @@ -82,6 +81,13 @@ lv_obj_t * lv_ddlist_create(lv_obj_t * par, const lv_obj_t * copy); * Setter functions *====================*/ +/** + * Set arrow draw in a drop down list + * @param ddlist pointer to drop down list object + * @param en enable/disable a arrow draw. E.g. "true" for draw. + */ +void lv_ddlist_set_draw_arrow(lv_obj_t * ddlist, bool en); + /** * Set the options in a drop down list from a string * @param ddlist pointer to drop down list object