Searched refs:dropdown (Results 1 – 16 of 16) sorted by relevance
/lvgl-3.4.0/src/widgets/ |
D | lv_dropdown.c | 106 lv_dropdown_t * dropdown = (lv_dropdown_t *)obj; in lv_dropdown_set_text() local 107 if(dropdown->text == txt) return; in lv_dropdown_set_text() 109 dropdown->text = txt; in lv_dropdown_set_text() 119 lv_dropdown_t * dropdown = (lv_dropdown_t *)obj; in lv_dropdown_set_options() local 122 dropdown->option_cnt = 0; in lv_dropdown_set_options() 125 if(options[i] == '\n') dropdown->option_cnt++; in lv_dropdown_set_options() 127 dropdown->option_cnt++; /*Last option has no `\n`*/ in lv_dropdown_set_options() 128 dropdown->sel_opt_id = 0; in lv_dropdown_set_options() 129 dropdown->sel_opt_id_orig = 0; in lv_dropdown_set_options() 138 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-3.4.0/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-3.4.0/docs/widgets/core/ |
D | dropdown.md | 3 :github_url: |github_link_base|/widgets/core/dropdown.md 32 The list is hidden/shown on open/close. To add styles to it use `lv_dropdown_get_list(dropdown)` t… 35 lv_obj_t * list = lv_dropdown_get_list(dropdown) /*Get the list*/ 46 Options are passed to the drop-down list as a string with `lv_dropdown_set_options(dropdown, option… 48 The `lv_dropdown_add_option(dropdown, "New option", pos)` function inserts a new option to `pos` in… 50 …n set from a static(constant) string too with `lv_dropdown_set_static_options(dropdown, options)`. 53 You can select an option manually with `lv_dropdown_set_selected(dropdown, id)`, where `id` is the … 56 The get the *index* of the selected option, use `lv_dropdown_get_selected(dropdown)`. 58 `lv_dropdown_get_selected_str(dropdown, buf, buf_size)` copies the *name* of the selected option to… 61 …de. The default `LV_DIR_BOTTOM` can be modified by `lv_dropdown_set_dir(dropdown, LV_DIR_LEFT/RIGH… [all …]
|
D | index.md | 18 dropdown
|
/lvgl-3.4.0/src/extra/widgets/calendar/ |
D | lv_calendar_header_dropdown.c | 100 lv_obj_t * dropdown = lv_event_get_target(e); in month_event_cb() local 103 uint16_t sel = lv_dropdown_get_selected(dropdown); in month_event_cb() 115 lv_obj_t * dropdown = lv_event_get_target(e); in year_event_cb() local 118 uint16_t sel = lv_dropdown_get_selected(dropdown); in year_event_cb()
|
/lvgl-3.4.0/docs/_static/css/ |
D | custom.css | 54 display: none; /*replaced by dropdown*/
|
/lvgl-3.4.0/docs/ |
D | CHANGELOG.md | 64 - feat(dropdown): keep the list on open/close for simpler styling [`9d3134b`](https://github.com/li… 110 - fix(dropdown): in lv_dropdpwn_get_selected_str handle if there are no options [`2925`](https://gi… 187 - fix(dropdown) be sure the list is the top object on the screen [`cb7fc2b`](https://github.com/lit… 233 - test(dropdown) fix to pass again [`918b3de`](https://github.com/littlevgl/lvgl/commit/918b3defd78… 485 - fix(dropdown) forget the selected option on encoder longpress [`e66b935`](https://github.com/lvgl… 511 - fix(dropdown) handle LV_KEY_ENTER [`8a50edd`](https://github.com/lvgl/lvgl/commit/8a50edd0689c713… 529 - fix(dropdown) use LV_EVENT_READY/CANCEL on list open/close [`4dd1d56`](https://github.com/lvgl/lv… 551 - fix(dropdown) add missing invalidations [`33b5d4a`](https://github.com/lvgl/lvgl/commit/33b5d4a4f… 552 - fix(dropdown) adjust the handling of keys sent to the dropdown [`e41c507`](https://github.com/lvg… 557 - fix(dropdown) fix list position with RTL base direction [`79edb37`](https://github.com/lvgl/lvgl/… [all …]
|
D | CONTRIBUTING.md | 209 …r instance, here are the examples of the [Drop-down list](/widgets/core/dropdown#examples) widget.
|
/lvgl-3.4.0/docs/overview/ |
D | indev.md | 95 - **LV_KEY_ESC** Close or exit (E.g. close a [Drop down list](/widgets/core/dropdown))
|
/lvgl-3.4.0/demos/widgets/ |
D | lv_demo_widgets.py | 513 dd = lv.dropdown(h, None)
|
/lvgl-3.4.0/ |
D | Kconfig | 787 bool "Use calendar header dropdown"
|