1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

475 Commits

Author SHA1 Message Date
Johannes Marbach
d09f6bdea3
feat(disp): Enable rendering to display subsection (#2583)
This change introduces new fields on `lv_disp_drv_t` that allow to
specify the size of the full display and the offset of the display
subsection that is being rendered to. The values are used to transform
the drawing area before calling `flush_cb` so that only the desired part
of the full display is being rendered to.

Relates to: lvgl/lv_drivers#166
2021-10-11 08:48:15 -04:00
Johannes Marbach
7658f98e86
feat(keyboard): add user-defined modes (#2651)
As discussed in https://forum.lvgl.io/t/localized-keyboard-layouts/6734,
this adds further `..._USER_N` keyboard modes that can be used to
implemented more keyboard layouts for locales that need more than 4
layers.
2021-10-11 14:46:07 +02:00
Jose Commins
07688e6543
docs(colorwheel) fix old API names (#2643)
`lv_colorwheel_set_color_mode` is now `lv_colorwheel_set_mode`
2021-10-06 12:55:09 -04:00
Miguel Magno
d93360537f
fix typos (#2634) 2021-10-04 18:37:07 +02:00
Gabor Kiss-Vamosi
5f90029811
feat(event) add LV_EVENT_CHILD_CREATED/DELETED (#2618)
* feat(event) add LV_EVENT_CHILD_CREATED/DELETED

* update docs and CHANGELOG
2021-10-04 16:52:11 +02:00
grarup
4eb406440b
fix LV_FORMAT_ATTRIBUTE fix for gnu > 4.4 (#2631)
Co-authored-by: Peter Grarup <pegp@dgs-diagnostics.com>
2021-10-04 16:42:41 +02:00
Gabor Kiss-Vamosi
8e7bba6ace docs libs fixes 2021-10-04 15:27:52 +02:00
Gabor Kiss-Vamosi
1a8fed5df0 docs add libs to the main index 2021-10-04 15:08:52 +02:00
Gabor Kiss-Vamosi
f5f9562336 docs include paths in libs 2021-10-04 15:03:49 +02:00
Gabor Kiss-Vamosi
18f61c5f77
arch add small 3rd party libs to lvgl (#2569)
* move png, sjpg, bmp, gif, fs_if to extra/libs

* reorganize the examples

* update lv_conf_internal.h

* fix warnings

* add freetype

* remove unused assets

* add the new libs to build tests

* update the docs
2021-10-04 14:34:11 +02:00
Lzx-James
3211066c05
docs(display) fix typo (#2624) 2021-09-30 09:46:37 -04:00
Gabor Kiss-Vamosi
2a9b9e6e11
Update arc.md 2021-09-29 13:30:44 +02:00
Francesco Valla
fc4fdb1e2c
fix(disp) set default theme also for non-default displays (#2596)
* feat(theme) add getter function for default theme

* fix(disp) set default theme also for non-default displays

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-09-29 11:24:13 +02:00
Gabor Kiss-Vamosi
e6e98abbc2
docs update version support table 2021-09-29 10:37:51 +02:00
seteq
c77ac0d904
docs add static for lv_indev_drv_t (#2605)
* added static for lv_indev_drv_t

* removed accidential edit

* Update indev.md
2021-09-29 10:31:35 +02:00
Johannes Marbach
d57eb7614d
feat(btnmatrix/keyboard): add option to show popovers on button press (#2537)
This adds a new option that, when enabled, shows popovers when pressing
buttons, similar to how the system keyboards on Android and iOS behave.
2021-09-28 11:28:59 +02:00
fvanroie
bc9c356347
docs(animimg) add to extra widgets index and fix example (#2610)
`lv_example_animimg_1` should not contain the `.c` extension, and add animation image to the index page for extra widgets.
2021-09-27 13:02:52 -04:00
fvanroie
f9d9aef122
docs(animimg) Add missing animation image page (#2609)
* docs(animimg) Add missing animation image page

Skeleton page for the new `animimg` object.
It needs more review and updating, but this can serve as a start.

* docs(examples) Add index.rst for animation image

Add index.rst for animation image to include the example in the documentation of the widget.

* Update animimg.md
2021-09-27 17:52:00 +02:00
Gabor Kiss-Vamosi
2433732570 docs(image) mention the frame_id paramter of lv_img_decoder_open
Related to https://github.com/lvgl/lvgl/pull/2197#issuecomment-926852353
2021-09-27 17:04:04 +02:00
Mariotaku
c45d9ccc3e
fix lv_deinit when LV_USE_GPU_SDL is enabled (#2598)
* Fixed lv_deinit when LV_USE_GPU_SDL is enabled

* Update CHANGELOG.md
2021-09-27 11:04:53 +02:00
Neo
5f75a3b406
fix(snapshot) snapshot is affected by parent's style because of wrong coords (#2579)
* fix(snapshot) image is affected by parent's style because of wrong coordinates

Signed-off-by: Neo Xu <neo.xu1990@gmail.com>

* fix(snapshot): take ext_draw_size into account and set disp res to obj size.

Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
Change-Id: Iae0d37fa1b2cdf20220087ced51857a36e83bb6d
2021-09-23 18:28:28 +02:00
Johannes Marbach
51f3310592
fix(btnmatrix): make ORed values work correctly with lv_btnmatrix_has_btn_ctrl (#2571)
This commit replaces the current `actual & expected` check in
`lv_btnmatrix_has_btn_ctrl` with `(actual & expected) == expected`. This
is required to make the function work with ORed control flags because
otherwise a parity in *any* bit will result in a return value of `true`
even if not all expected bits are set.
2021-09-22 12:03:19 +02:00
Gabor Kiss-Vamosi
56ebb1a4c8 feat(textarea) remove the need of lv_textarea_set_align
It was used to position the text in one line text areas where the label is shorter then the text area itself.
However, setting min_width=100% in case of one line text area ensures that the label is at least as wide as
the text area. This way the normal text_align style property can be used too.

Fixes https://forum.lvgl.io/t/spinbox-text-centering-not-working-as-intended-expected/6762/4
2021-09-13 20:09:54 +02:00
Gabor Kiss-Vamosi
26e15fa577 fix(imgbtn) add lv_imgbtn_set_state
The normal lv_obj_add/clear_state couldn't refresh the image button properly.
2021-09-13 17:44:12 +02:00
Karijn Wessing
953d9fb003
feat(example) add lv example list 2 (#2545)
* added micropython sample for obj.move_to_index(index)

* formatting update

* added lv.group_remove_obj(btn) for command buttons

* updated CHANGELOG.md
2021-09-13 17:41:25 +02:00
Thomas Hepworth
8abd060a8a
example(chart) add area chart example (#2507)
* feat add stacked area chart example

The example shows how to use a line chart and masking to create a stacked area chart.

* feat stacked area chart example

Updated index.rst to contain the stacked area chart example

* feat stacked area chart example

Coding style changes

* Update changelog

* feat(example) stacked area chart

Added axis ticks

* feat(example) stacked area chart

Responses to PR comments
- Changed to fixed point maths
- Renamed variables and filenames

* feat(example) stacked area chart

Made shift amount a variable.

* feat(example) stacked area chart

Fixed typo in changelog

Co-authored-by: Tom Hepworth <Tom_Hepworth@mentor.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-09-13 12:11:10 +02:00
Miguel Magno
5de6fbf847
docs(style) use correct API name for local styles (#2550) 2021-09-12 08:09:50 -04:00
Johannes Marbach
2cd5a90b7d
feat(msgbox): omit title label unless needed (#2539)
Prior to this commit, when the title string was empty and the close
button disabled, an extra empty line showed at the top of the message
box. This commit prevents adding the title label unless it has content
or is needed as a spacer for the close button.

As a positive side effect, this also prevents the default "text" from
displaying when NULL is passed as the title.

Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-09-09 15:09:49 +02:00
Johannes Marbach
52dac2b8e4
feat(msgbox): add function to get selected button index (#2538)
This adds a new function lv_msgbox_get_active_btn that works analogously
to lv_msgbox_get_active_btn_text but returns the button index instead of
its text.

The index is more convenient for comparison in localized applications as
it doesn't depend on the current language.
2021-09-09 14:40:37 +02:00
Kevin Thibedeau
ec9b41a05f
fix(zoom) multiplication overflow on 16-bit platforms (#2536) 2021-09-06 21:40:38 -04:00
Kevin Thibedeau
7d9fe20a0e
docs(all) Proofread, fix typos and add clarifications in confusing areas (#2528)
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-09-06 10:55:37 +02:00
Karijn Wessing
780e0efe2c
feat(obj) add lv_obj_move_to_index(obj, index), renamed lv_obj_get_child_id(obj) to lv_obj_get_index(obj) (#2514)
* - renamed lv_obj_get_id(obj) to lv_obj_get_index(obj).

- added lv_obj_move_to_index(obj, index).

* automatic review comment fixed

* removed unused variable

* review issue

* restored deprecated function in header, otherwise Build Micropython with LVGL submodule / build (pull_request)  failes

* moved deprecated lv_obj_get_child_id() back to lv_obj_tree.h, otherwise Micropython will not build

* inline function did not work

* made deprecated function 'static inline'

* and now also inline

* move static inline function to lv_api_map.h again

* removed lv_obj_move_up/down

* changed log to warning for deprecated function

* redefined lv_obj_move_foreground(obj) and lv_obj_move_background(obj) as inline functions now calling lv_obj_move_to_index(obj, index).

- lv_obj_swap(obj1, obj2) added. (#2461)
2021-09-05 20:47:55 +02:00
Johannes Marbach
53b65a7964
fix(examples) don't compile assets unless needed (#2523)
This wraps the code for the assets under examples/assets in
LV_BUILD_EXAMPLES so that it is not compiled when examples are
deactivated in lv_conf.h.
2021-09-03 15:01:01 +02:00
Ehsan Galavi
21f6a2ea03
docs(flex) update flex.md (#2517)
Description sentences "LV_FLEX_FLOW_ROW_WRAP_REVERSE"  and "LV_FLEX_FLOW_COLUMN_WRAP_REVERSE" are corrected.
2021-09-01 09:12:39 +02:00
Kevin Thibedeau
4d74194e0d
fix(color) Bad cast in lv_color_mix() caused UB with 16bpp or less (#2509) 2021-08-30 16:46:41 +02:00
Avra Mitra
d53b873556
Corrected a function name in obj.md (#2511)
In the example of `lv_obj_align_to(obj_to_align, obj_referece, LV_ALIGN_..., x, y)`, the function name was written as `lv_obj_align()`.
2021-08-30 11:08:04 +02:00
embeddedt
da0c97a367
docs(grid) fix missing article 2021-08-27 11:09:43 -04:00
embeddedt
5dbea7d725
docs(display) fix grammar in one spot 2021-08-27 08:35:38 -04:00
Gabor Kiss-Vamosi
bcd99e8e43 docs(indev, layer) update lv_obj_set_click() to lv_obj_add_flag() 2021-08-27 13:58:46 +02:00
ckielstra
5249a34d5d
docs more spelling fixes (#2499) 2021-08-27 12:15:39 +02:00
ckielstra
0f4e6e26f9
Simple spelling fixes (#2496) 2021-08-26 10:52:39 +02:00
Vincent Hamp
088b2bd490
docs fix typo: arae -> area (#2488)
Co-authored-by: Vincent Hamp <hamp@zimo.at>
2021-08-24 14:51:29 +02:00
Karijn Wessing
e111ea2a62
added lv_obj_move_up() and lv_obj_move_down() (#2467)
* - small with unneeded lv_obj_invalidate()  fix in lv_obj_move_foreground() and lv_obj_move_background()

- added lv_obj_move_up() and lv_obj_move_down()
- used new functions in sample 2
- used lv_obj_swap() to shuffle (turn around) list

* solved build error

* added top and bottom buttons in sample
2021-08-24 14:30:38 +02:00
fvanroie
2d38f1884c
Fix two examples in the docs with new v8 api (#2486)
* docs(overview) fix draw_buf fieldname

Change display driver buffer field to the new v8 field name: draw_buf.

* docs(overview) fix lv_img_create parameters

lv_img_create only has 1 parameter in v8.

* docs(get-started) fix draw_buf fieldname

Display driver `buffer` field changed to the new v8 field name: `draw_buf`.
2021-08-24 09:17:59 +02:00
Mariotaku
9b92885f83
fix(draw) use correct pointer in lv_draw_mask assertion (#2483) 2021-08-23 10:25:00 -04:00
Chris Mumford
35c430fe2d
docs update company name and year (#2476)
Update from 2020/LLC → 2021/Kft.
2021-08-22 14:27:23 -04:00
Miguel Magno
b7e6f6763d
docs fix typos (#2472) 2021-08-20 19:47:59 -04:00
tfx2001
f85ae9d32b
docs(overview) fix typo (#2465) 2021-08-19 12:06:10 -04:00
Gabor Kiss-Vamosi
906448ef63 feat(obj) place the scrollbar to the left with RTL base dir.
Related to #2424
2021-08-19 12:51:29 +02:00
Karijn Wessing
9a1f7f2fcb
feat(obj) add lv_obj_swap() function (#2461)
* proposal for lv_obj_swap() function

* review issues applied

* review changes for comments
2021-08-18 11:32:10 +02:00