Canvas (lv_canvas)
An Image extended with a user buffer the draw engine can render into.
Overview
The Canvas extends the Image widget with a user-provided buffer that LVGL's draw engine can render into. Rectangles, text, images, lines and arcs can all be drawn onto the buffer at runtime.
Learn more in the LVGL Open documentation.
Properties
Parts
Style parts of the widget with local style (e.g. style_bg_color-knob="0xff0000") or with style sheets (e.g. <style name="style_knob" selector="knob">). See Styles to learn more.
| Part | Description |
|---|---|
main | Style the area behind/around the drawn buffer: background, border and padding. The pixels are drawn by the user-set buffer. |
This widget adds no XML properties of its own — it inherits the full API of the Base Widget (lv_obj). See API for how the <api> works.
Last updated on