18#if LV_USE_DROPDOWN != 0
23#error "lv_dropdown: lv_label is required. Enable it in lv_conf.h (LV_USE_LABEL 1)"
31#define LV_DROPDOWN_POS_LAST 0xFFFF
32LV_EXPORT_CONST_INT(LV_DROPDOWN_POS_LAST);
46 uint16_t sel_opt_id_orig;
49 uint8_t static_txt : 1;
50 uint8_t selected_highlight: 1;
83void lv_dropdown_set_text(
lv_obj_t * obj,
const char * txt);
91void lv_dropdown_set_options(
lv_obj_t * obj,
const char * options);
99void lv_dropdown_set_options_static(
lv_obj_t * obj,
const char * options);
107void lv_dropdown_add_option(
lv_obj_t * obj,
const char * option, uint32_t pos);
113void lv_dropdown_clear_options(
lv_obj_t * obj);
120void lv_dropdown_set_selected(
lv_obj_t * obj, uint16_t sel_opt);
127void lv_dropdown_set_dir(
lv_obj_t * obj, lv_dir_t dir);
136void lv_dropdown_set_symbol(
lv_obj_t * obj,
const void * symbol);
143void lv_dropdown_set_selected_highlight(
lv_obj_t * obj,
bool en);
161const char * lv_dropdown_get_text(
lv_obj_t * obj);
168const char * lv_dropdown_get_options(
const lv_obj_t * obj);
175uint16_t lv_dropdown_get_selected(
const lv_obj_t * obj);
182uint16_t lv_dropdown_get_option_cnt(
const lv_obj_t * obj);
190void lv_dropdown_get_selected_str(
const lv_obj_t * obj,
char * buf, uint32_t buf_size);
198int32_t lv_dropdown_get_option_index(
lv_obj_t * obj,
const char * option);
205const char * lv_dropdown_get_symbol(
lv_obj_t * obj);
212bool lv_dropdown_get_selected_highlight(
lv_obj_t * obj);
219lv_dir_t lv_dropdown_get_dir(
const lv_obj_t * obj);
229void lv_dropdown_open(
lv_obj_t * dropdown_obj);
235void lv_dropdown_close(
lv_obj_t * obj);
242bool lv_dropdown_is_open(
lv_obj_t * obj);
Definition lv_obj_class.h:49