lv_draw_vector_private.h

API reference for lv_draw_vector_private.h

Report on GitHub
See Also: Public APIThis is the private implementation. See the public header for the stable interface.lv_draw_vector.h

Functions

lv_vector_for_each_destroy_tasks

This is the main function to draw the accumulated vector tasks by passing them to a vector renderer callback. When the callback returns the processed vector task will be destroyed.

 
void lv_vector_for_each_destroy_tasks(lv_ll_t *task_list, vector_draw_task_cb cb, void *used_data)
Parameters
NameTypeDescription
task_listlv_ll_t *pointer to the linked list in lv_draw_vector_dsc_t that stores the path shapes and their attributes.
cbvector_draw_task_cbthe callback used to iterate through the task
used_datavoid *

Structs

struct

_lv_vector_path_t

Stores the shape of the path as arrays of operations and points. For example move to 10;20 then draw a line to 30;40 and draw an arc with 30 radius and 70° sweep.

lv_vector_path_ctx_t is also required to describe how to fill and stroke the path.

MemberTypeDescription
qualitylv_vector_path_quality_t
opslv_array_t
pointslv_array_t
struct

_lv_vector_gradient_t

MemberTypeDescription
stylelv_vector_gradient_style_t
stopslv_grad_stop_t[2]A gradient stop array
stops_countuint16_tThe number of used stops in the array
x1float
y1float
x2float
y2float
cxfloat
cyfloat
crfloat
spreadlv_vector_gradient_spread_t
struct

_lv_vector_fill_dsc_t

struct

_lv_vector_stroke_dsc_t

struct

_lv_vector_path_ctx_t

Stores how to fill, stroke, transform etc a given path

MemberTypeDescription
fill_dsclv_vector_fill_dsc_t
stroke_dsclv_vector_stroke_dsc_t
matrixlv_matrix_t
blend_modelv_vector_blend_t
scissor_arealv_area_t
struct

_lv_draw_vector_dsc_t

MemberTypeDescription
baselv_draw_dsc_base_t
ctxlv_vector_path_ctx_t *The current colors, opacities, matrix, etc for the next task to be added by
task_listlv_ll_t *Store path shapes and their attributes in a list as lv_draw_vector_subtask_t.
struct

lv_draw_vector_subtask_t

Contains a path shape and its attributes together. It's a task that will be passed to the vector rendering engine. It's used in the task_list of lv_draw_vector_dsc_t.

MemberTypeDescription
pathlv_vector_path_t *
ctxlv_vector_path_ctx_t

Dependencies

How is this guide?

Last updated on

On this page