Home
last modified time | relevance | path

Searched refs:dropdown (Results 1 – 23 of 23) sorted by relevance

/lvgl-latest/src/widgets/dropdown/
Dlv_dropdown.c171 lv_dropdown_t * dropdown = (lv_dropdown_t *)obj; in lv_dropdown_set_text() local
172 if(dropdown->text == txt) return; in lv_dropdown_set_text()
174 dropdown->text = txt; in lv_dropdown_set_text()
184 lv_dropdown_t * dropdown = (lv_dropdown_t *)obj; in lv_dropdown_set_options() local
187 dropdown->option_cnt = 0; in lv_dropdown_set_options()
190 if(options[i] == '\n') dropdown->option_cnt++; in lv_dropdown_set_options()
192 dropdown->option_cnt++; /*Last option has no `\n`*/ in lv_dropdown_set_options()
193 dropdown->sel_opt_id = 0; in lv_dropdown_set_options()
194 dropdown->sel_opt_id_orig = 0; in lv_dropdown_set_options()
203 if(dropdown->options != NULL && dropdown->static_txt == 0) { in lv_dropdown_set_options()
[all …]
Dlv_dropdown_private.h51 lv_obj_t * dropdown; member
/lvgl-latest/examples/widgets/dropdown/
Dlv_example_dropdown_3.c6 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_screen_active()); 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_rotation(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()
Dindex.rst5 .. 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
/lvgl-latest/tests/src/test_cases/xml/
Dtest_xml_dropdown.c29 lv_obj_t * dropdown = lv_xml_create(scr, "lv_dropdown", dropdown_attrs); in test_xml_tabview_with_attrs() local
30 lv_obj_center(dropdown); in test_xml_tabview_with_attrs()
31 lv_dropdown_open(dropdown); in test_xml_tabview_with_attrs()
37 lv_xml_create(dropdown, "lv_dropdown-list", list_attrs); in test_xml_tabview_with_attrs()
/lvgl-latest/docs/details/widgets/
Ddropdown.rst54 :cpp:expr:`lv_dropdown_get_list(dropdown)` to get the list object. Example:
58 lv_obj_t * list = lv_dropdown_get_list(dropdown) /* Get list */
76 as the ``options`` argument to :cpp:expr:`lv_dropdown_set_options(dropdown, options)`.
81 The :cpp:expr:`lv_dropdown_add_option(dropdown, "New option", pos)` function
85 with :cpp:expr:`lv_dropdown_set_options_static(dropdown, options)`. In this case
90 :cpp:expr:`lv_dropdown_set_selected(dropdown, id, LV_ANIM_ON/LV_ANIM_OFF)`, where ``id`` is the ind…
97 :cpp:expr:`lv_dropdown_get_selected(dropdown)`.
99 :cpp:expr:`lv_dropdown_get_selected_str(dropdown, buf, buf_size)` copies the
106 be modified using :cpp:expr:`lv_dropdown_set_dir(dropdown, LV_DIR_LEFT)`.
115 :cpp:expr:`lv_dropdown_set_symbol(dropdown, LV_SYMBOL_...)`
[all …]
Dindex.rst19 dropdown
/lvgl-latest/demos/smartwatch/
Dlv_demo_smartwatch_settings.c206 lv_obj_t * dropdown = lv_dropdown_create(panel); in lv_demo_smartwatch_settings_add_dropdown() local
207 lv_dropdown_set_options(dropdown, options); in lv_demo_smartwatch_settings_add_dropdown()
208 lv_obj_set_width(dropdown, 120); in lv_demo_smartwatch_settings_add_dropdown()
209 lv_obj_set_height(dropdown, LV_SIZE_CONTENT); in lv_demo_smartwatch_settings_add_dropdown()
210 lv_obj_set_x(dropdown, 65); in lv_demo_smartwatch_settings_add_dropdown()
211 lv_obj_set_y(dropdown, 12); in lv_demo_smartwatch_settings_add_dropdown()
212 lv_obj_set_align(dropdown, LV_ALIGN_LEFT_MID); in lv_demo_smartwatch_settings_add_dropdown()
213 lv_obj_add_flag(dropdown, LV_OBJ_FLAG_SCROLL_ON_FOCUS); in lv_demo_smartwatch_settings_add_dropdown()
214 lv_obj_set_style_bg_color(dropdown, lv_color_hex(0x000000), LV_PART_MAIN | LV_STATE_DEFAULT); in lv_demo_smartwatch_settings_add_dropdown()
215 lv_obj_set_style_bg_opa(dropdown, 255, LV_PART_MAIN | LV_STATE_DEFAULT); in lv_demo_smartwatch_settings_add_dropdown()
[all …]
/lvgl-latest/src/widgets/calendar/
Dlv_calendar_header_dropdown.c128 lv_obj_t * dropdown = lv_event_get_current_target(e); in month_event_cb() local
131 uint32_t sel = lv_dropdown_get_selected(dropdown); in month_event_cb()
143 lv_obj_t * dropdown = lv_event_get_current_target(e); in year_event_cb() local
146 uint32_t sel = lv_dropdown_get_selected(dropdown); in year_event_cb()
153 const char * year_p = lv_dropdown_get_options(dropdown); in year_event_cb()
/lvgl-latest/tests/src/test_cases/
Dtest_bindings.c62 lv_obj_t * dropdown = lv_dropdown_create(scr); in create_ui() local
65 lv_dropdown_set_options(dropdown, "Lines\nBars"); in create_ui()
68 lv_obj_set_grid_cell(dropdown, LV_GRID_ALIGN_CENTER, 0, 1, LV_GRID_ALIGN_CENTER, 0, 1); in create_ui()
71 lv_dropdown_bind_value(dropdown, &chart_type_subject); in create_ui()
/lvgl-latest/examples/others/observer/
Dlv_example_observer_4.c120 lv_obj_t * dropdown = lv_dropdown_create(cont); in cont_observer_cb() local
121 lv_dropdown_bind_value(dropdown, &dropdown_subject[i]); in cont_observer_cb()
122 lv_obj_align(dropdown, LV_ALIGN_TOP_MID, 0, i * 50); in cont_observer_cb()
/lvgl-latest/tests/micropy_test/
Dmicropy.py155 dropdown = lv.dropdown(scr)
158 dropdown.set_options("Lines\nBars")
161 dropdown.set_grid_cell(
171 dropdown.bind_value(chart_type_subject)
/lvgl-latest/docs/details/integration/chip/
Dalif.rst186 Under "Run and Debug" \> "Run Configuration" (column) \> "alif" (row), click the dropdown and select
193 Open the dropdown from before and choose "Prepare program with Security Toolkit". Click the
196 Open the dropdown again and choose "Program with Security Toolkit". Click the play icon.
199 need to open the dropdown and choose "Program with Security Toolkit (select COM port)"
Drenesas.rst99 .. dropdown:: RA Family
140 .. dropdown:: RX Family
/lvgl-latest/env_support/qnx/
Dcommon.mk82 $(SRC_ROOT)/widgets/dropdown \
/lvgl-latest/docs/details/debugging/
Dgdb_plugin.rst35 dropdown-list@0x608000205420 (0,0,129,129)
/lvgl-latest/docs/_static/css/
Dcustom.css54 display: none; /*replaced by dropdown*/
/lvgl-latest/src/others/observer/
Dlv_observer.c752 lv_obj_t * dropdown = lv_event_get_current_target(e); in dropdown_value_changed_event_cb() local
755 lv_subject_set_int(subject, lv_dropdown_get_selected(dropdown)); in dropdown_value_changed_event_cb()
/lvgl-latest/env_support/pikascript/
Dpika_lvgl.pyi212 class dropdown(lv_obj):
/lvgl-latest/docs/details/other-components/
Dxml.rst58 - Support "internal widgets" (e.g., tabview's tabs, dropdown's list).
/lvgl-latest/docs/details/integration/driver/display/
Dlcd_stm32_guide.rst96 …tings panel select MCU GCC Compiler/Include paths. In the Configuration dropdown select [ All conf…
/lvgl-latest/
DKconfig1061 bool "Use calendar header dropdown"
/lvgl-latest/docs/
DCHANGELOG.rst152 - **feat(dropdown): add properties** `7c1a8a5 <https://github.com/lvgl/lvgl/commit/7c1a8a523d9d5d46…