/lvgl-latest/examples/widgets/roller/ |
D | lv_example_roller_2.c | 29 lv_obj_t * roller; in lv_example_roller_2() local 32 roller = lv_roller_create(lv_screen_active()); in lv_example_roller_2() 33 lv_roller_set_options(roller, opts, LV_ROLLER_MODE_NORMAL); in lv_example_roller_2() 34 lv_roller_set_visible_row_count(roller, 2); in lv_example_roller_2() 35 lv_obj_set_width(roller, 100); in lv_example_roller_2() 36 lv_obj_add_style(roller, &style_sel, LV_PART_SELECTED); in lv_example_roller_2() 37 lv_obj_set_style_text_align(roller, LV_TEXT_ALIGN_LEFT, 0); in lv_example_roller_2() 38 lv_obj_set_style_bg_color(roller, lv_color_hex3(0x0f0), 0); in lv_example_roller_2() 39 lv_obj_set_style_bg_grad_color(roller, lv_color_hex3(0xafa), 0); in lv_example_roller_2() 40 lv_obj_set_style_bg_grad_dir(roller, LV_GRAD_DIR_VER, 0); in lv_example_roller_2() [all …]
|
D | index.rst | 5 .. lv_example:: widgets/roller/lv_example_roller_1 8 Styling the roller 11 .. lv_example:: widgets/roller/lv_example_roller_2 14 add fade mask to roller 17 .. lv_example:: widgets/roller/lv_example_roller_3
|
/lvgl-latest/src/widgets/roller/ |
D | lv_roller.c | 53 static void transform_vect_recursive(lv_obj_t * roller, lv_point_t * vect); 133 lv_roller_t * roller = (lv_roller_t *)obj; in lv_roller_set_options() local 136 roller->sel_opt_id = 0; in lv_roller_set_options() 137 roller->sel_opt_id_ori = 0; in lv_roller_set_options() 140 roller->option_cnt = 0; in lv_roller_set_options() 143 if(options[cnt] == '\n') roller->option_cnt++; in lv_roller_set_options() 145 roller->option_cnt++; /*Last option has no `\n`*/ in lv_roller_set_options() 148 roller->mode = LV_ROLLER_MODE_NORMAL; in lv_roller_set_options() 152 roller->mode = LV_ROLLER_MODE_INFINITE; in lv_roller_set_options() 155 …int32_t normal_h = roller->option_cnt * (lv_font_get_line_height(font) + lv_obj_get_style_text_let… in lv_roller_set_options() [all …]
|
/lvgl-latest/tests/src/test_cases/widgets/ |
D | test_roller.c | 13 static lv_obj_t * roller = NULL; variable 26 roller = lv_roller_create(active_screen); in setUp() 30 lv_roller_set_options(roller, default_roller_options, LV_ROLLER_MODE_NORMAL); in setUp() 43 lv_group_add_obj(g, roller); in setUp() 50 lv_group_remove_obj(roller); in tearDown() 58 TEST_ASSERT_EQUAL_STRING(default_roller_options, lv_roller_get_options(roller)); in test_roller_get_options() 69 uint16_t option_count = lv_roller_get_option_count(roller); in test_roller_get_selected_option() 70 lv_roller_set_selected(roller, option_count - 1, LV_ANIM_OFF); in test_roller_get_selected_option() 72 actual_index = lv_roller_get_selected(roller); in test_roller_get_selected_option() 76 lv_roller_get_selected_str(roller, actual_str, OPTION_BUFFER_SZ); in test_roller_get_selected_option() [all …]
|
/lvgl-latest/examples/others/gridnav/ |
D | lv_example_gridnav_5.c | 60 lv_obj_t * roller = lv_roller_create(cont); in lv_example_gridnav_5() local 61 lv_roller_set_options(roller, opts[i], LV_ROLLER_MODE_INFINITE); in lv_example_gridnav_5() 62 lv_obj_set_size(roller, lv_pct(30), lv_pct(100)); in lv_example_gridnav_5() 63 lv_group_remove_obj(roller); in lv_example_gridnav_5() 64 rollers[i] = roller; in lv_example_gridnav_5() 65 lv_obj_add_event_cb(roller, roller_key_cb, LV_EVENT_KEY, (void *)(uintptr_t)i); in lv_example_gridnav_5()
|
/lvgl-latest/docs/details/widgets/ |
D | roller.rst | 23 - :cpp:enumerator:`LV_PART_MAIN` The background of the roller uses the :ref:`typical 49 :cpp:expr:`lv_roller_set_options(roller, string_list, LV_ROLLER_MODE_NORMAL)`. 56 :cpp:expr:`lv_roller_set_selected(roller, id, LV_ANIM_ON)`, 60 :cpp:expr:`lv_roller_set_selected_str(roller, str, LV_ANIM_ON)`, 66 To get the *index* of the currently selected item use :cpp:expr:`lv_roller_get_selected(roller)`. 68 :cpp:expr:`lv_roller_get_selected_str(roller, buf, buf_size)` will copy the name of the selected it… 73 The number of visible rows can be adjusted with :cpp:expr:`lv_roller_set_visible_row_count(roller, … 116 .. include:: ../../examples/widgets/roller/index.rst
|
D | index.rst | 30 roller
|
/lvgl-latest/examples/others/observer/ |
D | lv_example_observer_3.c | 141 lv_obj_t * roller = lv_observer_get_target(observer); in hour_roller_options_update() local 142 int32_t prev_selected = lv_roller_get_selected(roller); in hour_roller_options_update() 147 lv_roller_set_options(roller, hour12_options, LV_ROLLER_MODE_NORMAL); in hour_roller_options_update() 151 lv_roller_set_options(roller, hour24_options, LV_ROLLER_MODE_NORMAL); in hour_roller_options_update() 154 lv_roller_set_selected(roller, prev_selected, LV_ANIM_OFF); in hour_roller_options_update() 155 lv_obj_send_event(roller, LV_EVENT_VALUE_CHANGED, NULL); in hour_roller_options_update()
|
D | lv_example_observer_4.c | 127 lv_obj_t * roller = lv_roller_create(cont); in cont_observer_cb() local 128 lv_roller_bind_value(roller, &roller_subject[i]); in cont_observer_cb() 129 lv_obj_align(roller, LV_ALIGN_CENTER, - 80 + i * 160, 0); in cont_observer_cb()
|
/lvgl-latest/demos/ebike/ |
D | lv_demo_ebike_home.c | 130 lv_obj_t * roller = lv_observer_get_target_obj(observer); in speed_roller_10_observer_cb() local 132 lv_roller_set_selected(roller, speed / 10, LV_ANIM_ON); in speed_roller_10_observer_cb() 137 lv_obj_t * roller = lv_observer_get_target_obj(observer); in speed_roller_1_observer_cb() local 140 lv_roller_set_selected(roller, speed, LV_ANIM_ON); in speed_roller_1_observer_cb() 302 lv_obj_t * roller = lv_roller_create(parent); in roller_create() local 303 lv_obj_set_style_text_font(roller, &font_ebike_130, 0); in roller_create() 304 lv_obj_set_style_text_align(roller, LV_TEXT_ALIGN_CENTER, 0); in roller_create() 305 lv_roller_set_options(roller, opts, mode); in roller_create() 306 lv_roller_set_visible_row_count(roller, 1); in roller_create() 307 lv_obj_set_width(roller, 50); in roller_create() [all …]
|
/lvgl-latest/env_support/qnx/ |
D | common.mk | 98 $(SRC_ROOT)/widgets/roller \
|
/lvgl-latest/src/others/observer/ |
D | lv_observer.c | 733 lv_obj_t * roller = lv_event_get_current_target(e); in roller_value_changed_event_cb() local 736 lv_subject_set_int(subject, lv_roller_get_selected(roller)); in roller_value_changed_event_cb()
|
/lvgl-latest/docs/ |
D | CHANGELOG.rst | 154 - **feat(roller): add properties** `a793178 <https://github.com/lvgl/lvgl/commit/a793178bbf029c15e9… 191 - **fix(roller): do not move when there is only one option** `6717 <https://github.com/lvgl/lvgl/pu… 196 - **fix(roller): fix roller error in ubuntu24.04 uefi** `6683 <https://github.com/lvgl/lvgl/pull/66… 274 - **fix(roller): enable lv_example_roller_3 again** `6307 <https://github.com/lvgl/lvgl/pull/6307>`… 280 - **fix(roller): avoid divided-by-zero during draw event** `6285 <https://github.com/lvgl/lvgl/pull… 294 - **fix(roller): set the position of the selected text correctly** `6083 <https://github.com/lvgl/l…
|
/lvgl-latest/env_support/pikascript/ |
D | pika_lvgl.pyi | 243 class roller(lv_obj):
|
/lvgl-latest/docs/details/other-components/ |
D | observer.rst | 317 Bind an integer subject to a roller's value
|
/lvgl-latest/docs/details/base-widget/styles/ |
D | style-properties.rst | 1330 …e the E.g. blink time of the cursor on the Text Area or scroll time of a roller. See Widgets' docu… 1344 …ific. E.g. blink time of the cursor on the Text Area or scroll time of a roller. See Widgets' docu…
|
/lvgl-latest/docs/_static/css/ |
D | fontawesome.min.css | 5 …:before{content:"\f815"}.fa-paint-brush:before{content:"\f1fc"}.fa-paint-roller:before{content:"\f…
|