Searched refs:roller (Results 1 – 12 of 12) sorted by relevance
/lvgl-3.7.0/examples/widgets/roller/ |
D | lv_example_roller_2.py | 32 roller = lv.roller(lv.scr_act()) variable 33 roller.set_options(opts, lv.roller.MODE.NORMAL) 34 roller.set_visible_row_count(2) 35 roller.set_width(100) 36 roller.add_style(style_sel, lv.PART.SELECTED) 37 roller.set_style_text_align(lv.TEXT_ALIGN.LEFT, 0) 38 roller.align(lv.ALIGN.LEFT_MID, 10, 0) 39 roller.add_event_cb(event_handler, lv.EVENT.ALL, None) 40 roller.set_selected(2, lv.ANIM.OFF) 43 roller = lv.roller(lv.scr_act()) variable [all …]
|
D | lv_example_roller_2.c | 26 lv_obj_t * roller; in lv_example_roller_2() local 29 roller = lv_roller_create(lv_scr_act()); in lv_example_roller_2() 30 lv_roller_set_options(roller, opts, LV_ROLLER_MODE_NORMAL); in lv_example_roller_2() 31 lv_roller_set_visible_row_count(roller, 2); in lv_example_roller_2() 32 lv_obj_set_width(roller, 100); in lv_example_roller_2() 33 lv_obj_add_style(roller, &style_sel, LV_PART_SELECTED); in lv_example_roller_2() 34 lv_obj_set_style_text_align(roller, LV_TEXT_ALIGN_LEFT, 0); in lv_example_roller_2() 35 lv_obj_align(roller, LV_ALIGN_LEFT_MID, 10, 0); in lv_example_roller_2() 36 lv_obj_add_event_cb(roller, event_handler, LV_EVENT_ALL, NULL); in lv_example_roller_2() 37 lv_roller_set_selected(roller, 2, LV_ANIM_OFF); 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
|
D | lv_example_roller_1.py | 13 roller1 = lv.roller(lv.scr_act()) 26 "December"]),lv.roller.MODE.INFINITE)
|
D | lv_example_roller_3.py | 20 roller1 = lv.roller(lv.scr_act()) 50 "December"]),lv.roller.MODE.NORMAL)
|
/lvgl-3.7.0/src/widgets/ |
D | lv_roller.c | 101 lv_roller_t * roller = (lv_roller_t *)obj; in lv_roller_set_options() local 104 roller->sel_opt_id = 0; in lv_roller_set_options() 105 roller->sel_opt_id_ori = 0; in lv_roller_set_options() 108 roller->option_cnt = 0; in lv_roller_set_options() 111 if(options[cnt] == '\n') roller->option_cnt++; in lv_roller_set_options() 113 roller->option_cnt++; /*Last option has no `\n`*/ in lv_roller_set_options() 116 roller->mode = LV_ROLLER_MODE_NORMAL; in lv_roller_set_options() 120 roller->mode = LV_ROLLER_MODE_INFINITE; in lv_roller_set_options() 133 roller->sel_opt_id = ((LV_ROLLER_INF_PAGES / 2) + 0) * roller->option_cnt; in lv_roller_set_options() 135 roller->option_cnt = roller->option_cnt * LV_ROLLER_INF_PAGES; in lv_roller_set_options() [all …]
|
/lvgl-3.7.0/docs/widgets/core/ |
D | roller.md | 8 - `LV_PART_MAIN` The background of the roller uses all the typical background properties and text s… 15 Options are passed to the Roller as a string with `lv_roller_set_options(roller, options, LV_ROLLER… 17 `LV_ROLLER_MODE_INFINITE` makes the roller circular. 19 You can select an option manually with `lv_roller_set_selected(roller, id, LV_ANIM_ON/OFF)`, where … 21 If the roller has a lot of options then especially in infinite mode the rendered options of the dis… 24 To get the *index* of the currently selected option use `lv_roller_get_selected(roller)`. 26 `lv_roller_get_selected_str(roller, buf, buf_size)` will copy the name of the selected option to `b… 29 The number of visible rows can be adjusted with `lv_roller_set_visible_row_count(roller, num)`. 31 …th the current style. If the font, line space, border width, etc. of the roller changes this funct… 49 .. include:: ../../../examples/widgets/roller/index.rst
|
D | index.md | 18 roller
|
/lvgl-3.7.0/demos/widgets/ |
D | lv_demo_widgets.py | 501 roller = lv.roller(h, None) 502 roller.add_style(lv.cont.PART.MAIN, style_box) 503 roller.set_style_local_value_str(lv.cont.PART.MAIN, lv.STATE.DEFAULT, "Roller") 504 roller.set_auto_fit(False) 505 roller.set_align(lv.label.ALIGN.CENTER) 506 roller.set_visible_row_count(4) 508 roller.set_width(lv.cont.get_width_grid(h, 1 , 1)) 510 roller.set_width(lv.cont.get_width_grid(h, 2 , 1))
|
/lvgl-3.7.0/docs/ |
D | CHANGELOG.md | 236 - fix(roller): consider the recolor setting of the label [`39f4247`](https://github.com/lvgl/lvgl/c… 579 - fix(roller): fix unexpected jump in infinite mode [`18f2d78`](https://github.com/lvgl/lvgl/commit… 792 - fix(roller): clip overflowing text [`5709528`](https://github.com/littlevgl/lvgl/commit/570952855… 820 - fix(roller): snap on press lost [`fa9340c`](https://github.com/littlevgl/lvgl/commit/fa9340c45fd4… 1115 - fix(roller) fix partial redraw of the selected area [`6bc40f8`](https://github.com/lvgl/lvgl/comm… 1274 - fix(roller) adjust the size of the selected area correctly [`01d1c87`](https://github.com/lvgl/lv… 1292 - feat(examples) add MicroPython version of lv_example_anim_3 and allow loading roller font dynamic… 1536 - fix(roller) fix partial redraw of the selected area 1537 - fix(roller) adjust the size of the selected area correctly 1782 - refactor(roller) rename LV_ROLLER_MODE_INIFINITE -> LV_ROLLER_MODE_INFINITE [all …]
|
/lvgl-3.7.0/docs/overview/ |
D | style-props.md | 739 …e the E.g. blink time of the cursor on the text area or scroll time of a roller. See the widgets' … 748 …ific. E.g. blink time of the cursor on the text area or scroll time of a roller. See the widgets' …
|
/lvgl-3.7.0/docs/_static/css/ |
D | fontawesome.min.css | 5 …:before{content:"\f815"}.fa-paint-brush:before{content:"\f1fc"}.fa-paint-roller:before{content:"\f…
|