Home
last modified time | relevance | path

Searched refs:spinbox (Results 1 – 8 of 8) sorted by relevance

/lvgl-latest/src/extra/widgets/spinbox/
Dlv_spinbox.c70 lv_spinbox_t * spinbox = (lv_spinbox_t *)obj; in lv_spinbox_set_value() local
72 if(i > spinbox->range_max) i = spinbox->range_max; in lv_spinbox_set_value()
73 if(i < spinbox->range_min) i = spinbox->range_min; in lv_spinbox_set_value()
75 spinbox->value = i; in lv_spinbox_set_value()
88 lv_spinbox_t * spinbox = (lv_spinbox_t *)obj; in lv_spinbox_set_rollover() local
90 spinbox->rollover = b; in lv_spinbox_set_rollover()
103 lv_spinbox_t * spinbox = (lv_spinbox_t *)obj; in lv_spinbox_set_digit_format() local
111 if(spinbox->range_max > max_val - 1) spinbox->range_max = max_val - 1; in lv_spinbox_set_digit_format()
112 if(spinbox->range_min < - max_val + 1) spinbox->range_min = - max_val + 1; in lv_spinbox_set_digit_format()
115 spinbox->digit_count = digit_count; in lv_spinbox_set_digit_format()
[all …]
/lvgl-latest/examples/widgets/spinbox/
Dlv_example_spinbox_1.c4 static lv_obj_t * spinbox; variable
10 lv_spinbox_increment(spinbox); in lv_spinbox_increment_event_cb()
18 lv_spinbox_decrement(spinbox); in lv_spinbox_decrement_event_cb()
24 spinbox = lv_spinbox_create(lv_scr_act()); in lv_example_spinbox_1()
25 lv_spinbox_set_range(spinbox, -1000, 25000); in lv_example_spinbox_1()
26 lv_spinbox_set_digit_format(spinbox, 5, 2); in lv_example_spinbox_1()
27 lv_spinbox_step_prev(spinbox); in lv_example_spinbox_1()
28 lv_obj_set_width(spinbox, 100); in lv_example_spinbox_1()
29 lv_obj_center(spinbox); in lv_example_spinbox_1()
31 lv_coord_t h = lv_obj_get_height(spinbox); in lv_example_spinbox_1()
[all …]
Dlv_example_spinbox_1.py4 spinbox.increment()
9 spinbox.decrement()
11 spinbox = lv.spinbox(lv.scr_act()) variable
12 spinbox.set_range(-1000, 25000)
13 spinbox.set_digit_format(5, 2)
14 spinbox.step_prev()
15 spinbox.set_width(100)
16 spinbox.center()
18 h = spinbox.get_height()
22 btn.align_to(spinbox, lv.ALIGN.OUT_RIGHT_MID, 5, 0)
[all …]
Dindex.rst5 .. lv_example:: widgets/spinbox/lv_example_spinbox_1
/lvgl-latest/docs/widgets/extra/
Dspinbox.md11 `lv_spinbox_set_value(spinbox, 1234)` sets a new value on the Spinbox.
13 `lv_spinbox_increment(spinbox)` and `lv_spinbox_decrement(spinbox)` increments/decrements the value…
15 `lv_spinbox_set_range(spinbox, -1000, 2500)` sets a range. If the value is changed by `lv_spinbox_s…
17 `lv_spinbox_set_step(spinbox, 100)` sets which digits to change on increment/decrement. Only multip…
19 `lv_spinbox_set_cursor_pos(spinbox, 1)` sets the cursor to a specific digit to change on increment/…
21 …aviour to shifting to the left, the `lv_spinbox_set_digit_step_direction(spinbox, LV_DIR_LEFT)` ca…
25 `lv_spinbox_set_digit_format(spinbox, digit_count, separator_position)` sets the number format. `di…
29 `lv_spinbox_set_rollover(spinbox, true/false)` enables/disabled rollover mode. If either the minimu…
47 .. include:: ../../../examples/widgets/spinbox/index.rst
Dindex.md20 spinbox
/lvgl-latest/
Dcomponent.mk27 src/extra/widgets/spinbox \
/lvgl-latest/docs/
DCHANGELOG.md176 - fix (spinbox): doubling characters entered from the keyboard [`4190`](https://github.com/lvgl/lv…
482 - fix(spinbox): remove invalid judgment [`3227`](https://github.com/lvgl/lvgl/pull/3227)
552 - fix(spinbox): set its default width in its class [`3d92972`](https://github.com/lvgl/lvgl/commit/…
572 - fix(spinbox): rename lv_spinbox_set_pos to lv_spinbox_set_cursor_pos [`a99eb6b`](https://github.c…
961 - feat(spinbox ) add function to set cursor to specific position [`2314`](https://github.com/lvgl/l…
1718 - feat(spinbox) add inline get_step function for MicroPython support
1792 - fix(spinbox) update cursor position in lv_spinbox_set_step