/lvgl-latest/src/widgets/ |
D | lv_dropdown.c | 105 lv_dropdown_t * dropdown = (lv_dropdown_t *)obj; in lv_dropdown_set_text() local 106 if(dropdown->text == txt) return; in lv_dropdown_set_text() 108 dropdown->text = txt; in lv_dropdown_set_text() 118 lv_dropdown_t * dropdown = (lv_dropdown_t *)obj; in lv_dropdown_set_options() local 121 dropdown->option_cnt = 0; in lv_dropdown_set_options() 124 if(options[i] == '\n') dropdown->option_cnt++; in lv_dropdown_set_options() 126 dropdown->option_cnt++; /*Last option has no `\n`*/ in lv_dropdown_set_options() 127 dropdown->sel_opt_id = 0; in lv_dropdown_set_options() 128 dropdown->sel_opt_id_orig = 0; in lv_dropdown_set_options() 137 if(dropdown->options != NULL && dropdown->static_txt == 0) { in lv_dropdown_set_options() [all …]
|
D | lv_dropdown.h | 55 lv_obj_t * dropdown; member
|
/lvgl-latest/examples/widgets/dropdown/ |
D | lv_example_dropdown_3.c | 6 lv_obj_t * dropdown = lv_event_get_target(e); in event_cb() local 8 lv_dropdown_get_selected_str(dropdown, buf, sizeof(buf)); in event_cb() 18 lv_obj_t * dropdown = lv_dropdown_create(lv_scr_act()); in lv_example_dropdown_3() local 19 lv_obj_align(dropdown, LV_ALIGN_TOP_LEFT, 10, 10); in lv_example_dropdown_3() 20 lv_dropdown_set_options(dropdown, "New project\n" in lv_example_dropdown_3() 30 lv_dropdown_set_text(dropdown, "Menu"); in lv_example_dropdown_3() 34 lv_dropdown_set_symbol(dropdown, &img_caret_down); in lv_example_dropdown_3() 35 lv_obj_set_style_transform_angle(dropdown, 1800, LV_PART_INDICATOR | LV_STATE_CHECKED); in lv_example_dropdown_3() 38 lv_dropdown_set_selected_highlight(dropdown, false); in lv_example_dropdown_3() 40 lv_obj_add_event_cb(dropdown, event_cb, LV_EVENT_VALUE_CHANGED, NULL); in lv_example_dropdown_3()
|
D | lv_example_dropdown_3.py | 22 dropdown = e.get_target() 24 dropdown.get_selected_str(option, len(option)) 31 dropdown = lv.dropdown(lv.scr_act()) variable 32 dropdown.align(lv.ALIGN.TOP_LEFT, 10, 10) 33 dropdown.set_options("\n".join([ 42 dropdown.set_text("Menu") 46 dropdown.set_symbol(img_caret_down_argb) 47 dropdown.set_style_transform_angle(1800, lv.PART.INDICATOR | lv.STATE.CHECKED) 50 dropdown.set_selected_highlight(False) 52 dropdown.add_event_cb(event_cb, lv.EVENT.VALUE_CHANGED, None)
|
D | index.rst | 5 .. lv_example:: widgets/dropdown/lv_example_dropdown_1 11 .. lv_example:: widgets/dropdown/lv_example_dropdown_2 18 .. lv_example:: widgets/dropdown/lv_example_dropdown_3
|
D | lv_example_dropdown_2.py | 13 dd = lv.dropdown(lv.scr_act()) 16 dd = lv.dropdown(lv.scr_act()) 22 dd = lv.dropdown(lv.scr_act()) 28 dd = lv.dropdown(lv.scr_act())
|
D | lv_example_dropdown_1.py | 11 dd = lv.dropdown(lv.scr_act())
|
/lvgl-latest/docs/widgets/core/ |
D | dropdown.md | 28 The list is hidden/shown on open/close. To add styles to it use `lv_dropdown_get_list(dropdown)` t… 31 lv_obj_t * list = lv_dropdown_get_list(dropdown) /*Get the list*/ 42 Options are passed to the drop-down list as a string with `lv_dropdown_set_options(dropdown, option… 44 The `lv_dropdown_add_option(dropdown, "New option", pos)` function inserts a new option to `pos` in… 46 …an set from a static(constant) string too with `lv_dropdown_set_options_static(dropdown, options)`. 49 You can select an option manually with `lv_dropdown_set_selected(dropdown, id)`, where `id` is the … 52 The get the *index* of the selected option, use `lv_dropdown_get_selected(dropdown)`. 54 `lv_dropdown_get_selected_str(dropdown, buf, buf_size)` copies the *name* of the selected option to… 57 …de. The default `LV_DIR_BOTTOM` can be modified by `lv_dropdown_set_dir(dropdown, LV_DIR_LEFT/RIGH… 62 A symbol (typically an arrow) can be added to the dropdown list with `lv_dropdown_set_symbol(dropdo… [all …]
|
D | index.md | 14 dropdown
|
/lvgl-latest/src/extra/widgets/calendar/ |
D | lv_calendar_header_dropdown.c | 139 lv_obj_t * dropdown = lv_event_get_target(e); in month_event_cb() local 142 uint16_t sel = lv_dropdown_get_selected(dropdown); in month_event_cb() 154 lv_obj_t * dropdown = lv_event_get_target(e); in year_event_cb() local 157 uint16_t sel = lv_dropdown_get_selected(dropdown); in year_event_cb() 165 const char * year_p = lv_dropdown_get_options(dropdown); in year_event_cb()
|
/lvgl-latest/docs/_static/css/ |
D | custom.css | 54 display: none; /*replaced by dropdown*/
|
/lvgl-latest/docs/ |
D | CHANGELOG.md | 23 - fix(dropdown): avoid partial match in lv_dropdown_get_option_index [`4598`](https://github.com/lv… 24 - fix(dropdown): reset char_i = 0, avoid access overflow [`4589`](https://github.com/lvgl/lvgl/pull… 59 - fix(docs): dropdown: fix function name in description of static options [`4535`](https://github.c… 62 - fix(dropdown): position to the selected item in lv_dropdown_set_selected [`f174589`](https://gith… 75 - ci(dropdown): fix test [`5fc488a`](https://github.com/lvgl/lvgl/commit/5fc488a088639dbfb5eb44f65b… 413 - feat(dropdown): add lv_dropdown_get_option_index [`9997fb0`](https://github.com/lvgl/lvgl/commit/… 558 - fix(dropdown): fix scrolling when options are CENTER aligned [`e651383`](https://github.com/lvgl/… 698 - feat(dropdown): keep the list on open/close for simpler styling [`9d3134b`](https://github.com/li… 744 - fix(dropdown): in lv_dropdown_get_selected_str handle if there are no options [`2925`](https://gi… 821 - fix(dropdown) be sure the list is the top object on the screen [`cb7fc2b`](https://github.com/lit… [all …]
|
D | CONTRIBUTING.md | 205 …or instance, here are the examples of the [Drop-down list](/widgets/core/dropdown#examples) widget.
|
/lvgl-latest/docs/overview/ |
D | indev.md | 93 - **LV_KEY_ESC** Close or exit (E.g. close a [Drop down list](/widgets/core/dropdown))
|
/lvgl-latest/demos/widgets/ |
D | lv_demo_widgets.py | 513 dd = lv.dropdown(h, None)
|
/lvgl-latest/ |
D | Kconfig | 828 bool "Use calendar header dropdown"
|