Gabor Kiss-Vamosi
a39dac9e5c
fix(checkbox) consider the bg border when positioning the indicator
2021-08-17 18:52:06 +02:00
embeddedt
8ae894ebd4
feat(switch) add smooth animation when changing state ( #2442 )
...
* feat(switch) add smooth animation when changing state
* refactor(switch) improve code quality for animation feature
* refactor(switch) flatten animation structure into widget
Co-authored-by: HX2003 <HX2003@users.noreply.github.com>
2021-08-17 12:33:55 +02:00
Gabor Kiss-Vamosi
ea2545ae5d
fix(table) fix an off-by-one issue in self size calculation
2021-08-17 10:47:27 +02:00
Gabor Kiss-Vamosi
e41c507804
fix(dropdown) adjust the handling of keys sent to the dropdown
2021-08-12 14:44:03 +02:00
Gabor Kiss-Vamosi
8a50edd068
fix(dropdown) handle LV_KEY_ENTER
...
fixes https://forum.lvgl.io/t/how-to-send-key-events-to-a-dropdown/6393
2021-08-11 10:49:05 +02:00
Gabor Kiss-Vamosi
0f14f49465
fix(arc, merter) fix invaidation in special cases
...
fixes #2443
2021-08-09 15:37:58 +02:00
Gabor Kiss-Vamosi
a1b362c986
fix(canvas) invalidate the image on delete
...
fixes #2398
2021-08-09 11:23:48 +02:00
Gabor Kiss-Vamosi
7672847ce3
fix(bidi) fix the handling of LV_BASE_DIR_AUTO in several widgets
...
fixes #2421
2021-08-03 16:03:07 +02:00
Gabor Kiss-Vamosi
5b3d3dc8b3
perf(draw) reimplement rectangle drawing algorithms
...
No functionalty has changed only make them more readable and faster.
2021-08-02 15:45:14 +02:00
Gabor Kiss-Vamosi
79edb37b0a
fix(dropdown) fix list position with RTL base direction
...
related to #2424
2021-08-02 12:27:57 +02:00
Gabor Kiss-Vamosi
4dd1d566fc
fix(dropdown) use LV_EVENT_READY/CANCEL on list open/close
...
Instead of LV_EVENT_VALUE_CHANGE to avoid conflicts with new option selection.
2021-07-28 10:09:46 +02:00
Gabor Kiss-Vamosi
dae7039803
fix(dropdown) send LV_EVENT_VALUE_CHANGED to allow styling of the list
2021-07-28 09:52:37 +02:00
Gabor Kiss-Vamosi
8c15933030
fix(table) clip overflowing content
...
If there was a extra draw padding the cells were draw out of the real table
2021-07-28 09:38:45 +02:00
Gabor Kiss-Vamosi
637b706ddc
perf(draw) reimplement circle drawing algorithms ( #2374 )
...
* perf(draw) reimplement circle drawing algorithms
Imporve the speed of circle drawing
Add circle draw caching
Various other speed improvements
* docs describe how to use masks
* fix(draw) add missing GC root usage
2021-07-27 19:16:00 +02:00
Neo
c98c8252ea
feat(snapshot) add API to take snapshot for object ( #2353 )
...
* Fix image zooming causes unexpected object size.
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
* add lv_snapshot_take API.
* fix(img) invalidate size and layout on zoom and angle change
* fix(img) not self-repeating under some zoom level.
* fix(snapshot) fix to keep the original position
* Move various set_px_cb_xx functions to lv_hal_disp.c
* add snapshot API to store image to provided buffer
* minor fixes and refactoring
* Move snapshot source to extra/others/snapshot.
1. Update parameter buff to buf.
2. Add macro to disable lv_snapshot, enabled by default.
* docs(others) add the others folder with snapshot.md
* docs(snapshot) added doc and example for snapshot.
1. Update doc snapshot.md
2. Add example lv_example_snapshot_1 to folder examples/others/snapshot
3. Update lv_conf_template.h and lv_conf_internal.h
4. Remove lv_snapshot.c from lv_misc.mk
5. Add others to index.md
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
* add micropython example for snapshot
Co-authored-by: Xu Xingliang <xuxingliang@xiaomi.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-07-19 14:46:28 +02:00
Neo
fe461caf7e
feat(img) add img_size property ( #2284 )
...
* Fix image zooming causes unexpected object size.
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
* fix(img) invalidate size and layout on zoom and angle change
* fix(img) not self-repeating under some zoom level.
* minor fixes and refactoring
* docs(img) add img_size
Co-authored-by: Xu Xingliang <xuxingliang@xiaomi.com>
Co-authored-by: Gabor Kiss-Vamosi <kisvegabor@gmail.com>
2021-07-16 21:05:49 +02:00
Avamander
078eaa009d
refactor(printf) add printf-like function attribute to _lv_txt_set_text_vfmt and lv_label_set_text_fmt ( #2332 )
...
This improves static analysis and compiler warnings of incorrect format usage.
2021-07-11 15:19:51 -04:00
Gabor Kiss-Vamosi
88c485949f
feat(event, widgets) improve the paramter of LV_EVENT_DRAW_PART_BEGIN/END
...
Add lv_<widget>_draw_part_type_t to widgets to precisly describe the hooked drawings.
Also add class_p element to lv_obj_draw_part_dsc_t to show what widgets lv_<widget>_draw_part_type_t needs to be used.
Related to: https://forum.lvgl.io/t/how-to-add-minor-division-lines-to-a-chart/5366/
2021-07-07 16:19:06 +02:00
Gabor Kiss-Vamosi
f172eb3fd7
fix(arc) disable LV_OBJ_FLAG_SCROLL_CHAIN by default
2021-07-07 16:19:06 +02:00
Gabor Kiss-Vamosi
3fb8baf503
fix(widgets) use lv_obj_class for all the widgets
...
Related to #2346
2021-07-06 13:52:12 +02:00
Gabor Kiss-Vamosi
6bc40f8c44
fix(roller) fix partial redraw of the selected area
2021-07-05 15:44:40 +02:00
Gabor Kiss-Vamosi
01d1c873e1
fix(roller) adjust the size of the selected area correctly
...
fixes #2340
2021-07-05 14:12:58 +02:00
Gabor Kiss-Vamosi
77cedfa08f
fix(btnmatrix) fix button invalidation on focus change
2021-07-01 16:58:24 +02:00
Gabor Kiss-Vamosi
60d9a5e493
fix(textarea) style update in oneline mode + improve sroll to cursor
...
fixes : #2335
2021-07-01 15:33:50 +02:00
Gabor Kiss-Vamosi
845c4080f5
Merge branch 'master' into feat/test-unity
2021-06-23 22:20:00 +02:00
Gabor Kiss-Vamosi
e66b935061
fix(dropdown) forget the selected option on encoder longpress
2021-06-23 21:53:16 +02:00
Gabor Kiss-Vamosi
3672f87332
test move more source files to src folder
2021-06-23 13:23:47 +02:00
Gabor Kiss-Vamosi
ad04307d3f
Merge branch 'master' into feat/test-unity
2021-06-23 12:51:26 +02:00
Gabor Kiss-Vamosi
713b39ecdb
fix(obj, switch) do not send LV_EVENT_VALUE_CHANGED twice
...
fixes #2330
2021-06-22 10:06:28 +02:00
Gabor Kiss-Vamosi
e35b1d04bd
test add build test again, add dropdown test, integrate gcov and gvocr
2021-06-18 14:13:41 +02:00
Gabor Kiss-Vamosi
cb3692e302
fix(table) invalidate the table on cell value change
2021-06-16 13:09:57 +02:00
Gabor Kiss-Vamosi
a070ecfe8c
fix(label) remove dupliacted lv_obj_refresh_self_size
2021-06-16 13:09:33 +02:00
Gabor Kiss-Vamosi
38bb8afc16
fix(template) udpate lv_objx_template to v8
2021-06-07 18:32:38 +02:00
Gabor Kiss-Vamosi
3b58ef14e5
fix(btnmamatrix) fix focus event handling
2021-06-02 14:21:15 +02:00
Gabor Kiss-Vamosi
57e211cc17
fix(label) calculating the clip area
2021-06-02 13:22:55 +02:00
Gabor Kiss-Vamosi
1cb57494df
revert attempts to make struct private
...
feat/priate-struct was create as snapshot before this commit
2021-05-30 15:15:43 +02:00
Gabor Kiss-Vamosi
e3fb5d2840
fix minor example issues
2021-05-27 16:06:17 +02:00
Gabor Kiss-Vamosi
0cafde653d
feat(example) add style examples
2021-05-27 11:50:04 +02:00
Gabor Kiss-Vamosi
a0eb46b042
feat(theme) add mono theme
2021-05-26 12:23:23 +02:00
Gabor Kiss-Vamosi
75e1950320
feat make a lot of structures private
2021-05-24 13:33:59 +02:00
Gabor Kiss-Vamosi
5331fc9fb5
feat make some other structs private
2021-05-23 13:09:58 +02:00
Gabor Kiss-Vamosi
3fa42f4245
fix(table) fix clicking with RTL direction
2021-05-21 12:57:26 +02:00
Gabor Kiss-Vamosi
e2710feedb
fix(scoll) lv_obj_get_scroll_bottom if there is no children
2021-05-21 12:33:58 +02:00
Gabor Kiss-Vamosi
33ab14568a
fix(text) fix handling LV_TEXT_ALIGN_AUTO
2021-05-21 11:30:42 +02:00
Gabor Kiss-Vamosi
d73e42011d
feat make some structs private
2021-05-21 10:58:32 +02:00
Gabor Kiss-Vamosi
5e9a7e226f
fix(btnmatrix) in edot mode go to the last button after the first
2021-05-20 15:52:13 +02:00
Gabor Kiss-Vamosi
1386edf2fb
fix(bidi) fix tabview, textarea, label, btnmatrix, roller, dropdown with RTL base direction
2021-05-20 12:04:06 +02:00
Gabor Kiss-Vamosi
e2a7f559ab
feat(bidi) make base dir a style property and rename lv_bidi_dir_t to lv_base_dir_t
2021-05-19 20:55:44 +02:00
Gabor Kiss-Vamosi
5f0fe3a22c
fix(roller) make lv_roller_set_visible_row_count consider border width
2021-05-19 15:51:30 +02:00
Gabor Kiss-Vamosi
b634a63963
fix(textarea, spinbox) fix cursor position and size
2021-05-19 15:29:28 +02:00