From 6266851381d3b1f1e350dc4689e6bc71ece2f5c1 Mon Sep 17 00:00:00 2001 From: Gabor Kiss-Vamosi Date: Sat, 15 Jan 2022 20:19:12 +0100 Subject: [PATCH] docs(gpu): link style properties and boxing model related to #2988 --- docs/porting/gpu.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/porting/gpu.md b/docs/porting/gpu.md index b4a9dbd30..caf1519bc 100644 --- a/docs/porting/gpu.md +++ b/docs/porting/gpu.md @@ -32,8 +32,9 @@ It contains a pointer to a buffer where drawing should happen and a couple of ca All `draw_*` callbacks receive a pointer to the current `draw_ctx` as their first parameter.  Among the other parameters there is a descriptor too that tells what to draw. E.g. for `draw_rect` it's called [lv_draw_rect_dsc_t](https://github.com/lvgl/lvgl/blob/master/src/draw/lv_draw_rect.h), -for `lv_draw_line` it's called [lv_draw_line_dsc_t](https://github.com/lvgl/lvgl/blob/master/src/draw/lv_draw_line.h). +for `lv_draw_line` it's called [lv_draw_line_dsc_t](https://github.com/lvgl/lvgl/blob/master/src/draw/lv_draw_line.h), etc. +To correctly render according to a `draw_dsc` you need to be familiar with the [Boxing model](https://docs.lvgl.io/master/overview/coords.html#boxing-model) of LVGL and the meanings of the fields. The name and meaning of the fields are identical to name and meaning of the [Style properties](https://docs.lvgl.io/master/overview/style-props.html). ### Initialization