feat(chart) send LV_EVENT_DRAW_PART_BEGIN/END before/after the division line drawing section.

See https://forum.lvgl.io/t/how-to-add-minor-division-lines-to-a-chart/5366/15
This commit is contained in:
Gabor Kiss-Vamosi
2021-06-25 13:51:09 +02:00
parent e66b935061
commit e0ae2aa106
2 changed files with 13 additions and 3 deletions

View File

@@ -140,7 +140,7 @@ The possible values of `dir` `LV_DIR_NONE/RIGHT/UP/LEFT/DOWN/HOR/VER/ALL` or th
- vertical line `clip_area`, `p1`, `p2` (points of the line), `line_dsc`, `part`
- horizontal line `clip_area`, `p1`, `p2` (points of the line), `line_dsc`, `part`
- point `clip_area`, `draw_area` (points of the line), `rect_dsc`, `part`
- `LV_PART_MAIN` (the division lines) `clip_area`, `id` (index of the line), `p1`, `p2` (points of the line), `line_dsc`, `part`
- `LV_PART_MAIN` (the division lines) `clip_area`, `id` (index of the line), `p1`, `p2` (points of the line), `line_dsc`, `part`. Besides events for every line, an event is sent before the first line and after the last line with `id=0xFFFFFFFF`, `p1 = NULL` and `p2 = NULL`. It can be used to add/remove masks, or draw special division lines.
Learn more about [Events](/overview/event).