lv_draw_vector_private.h
API reference for lv_draw_vector_private.h
See Also: Public APIThis is the private implementation. See the public header for the stable interface.lv_draw_vector.h
Summary
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 *user_data)| Name | Type | Description |
|---|---|---|
task_list | lv_ll_t * | pointer to the linked list in lv_draw_vector_dsc_t that stores the path shapes and their attributes. |
cb | vector_draw_task_cb | the callback used to iterate through the task |
user_data | void * | a custom pointer that will be passed to the callback May be NULL. |
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.
| Member | Type | Description |
|---|---|---|
quality | lv_vector_path_quality_t | |
ops | lv_array_t | |
points | lv_array_t |
struct
_lv_vector_gradient_t
| Member | Type | Description |
|---|---|---|
style | lv_vector_gradient_style_t | |
stops | lv_grad_stop_t[2] | A gradient stop array |
stops_count | uint16_t | The number of used stops in the array |
x1 | float | |
y1 | float | |
x2 | float | |
y2 | float | |
cx | float | |
cy | float | |
cr | float | |
spread | lv_vector_gradient_spread_t |
struct
_lv_vector_fill_dsc_t
| Member | Type | Description |
|---|---|---|
style | lv_vector_draw_style_t | |
color | lv_color32_t | |
opa | lv_opa_t | |
fill_rule | lv_vector_fill_t | |
fill_units | lv_vector_fill_units_t | |
img_dsc | lv_draw_image_dsc_t | |
gradient | lv_vector_gradient_t | |
matrix | lv_matrix_t |
struct
_lv_vector_stroke_dsc_t
| Member | Type | Description |
|---|---|---|
style | lv_vector_draw_style_t | |
color | lv_color32_t | |
opa | lv_opa_t | |
width | float | |
dash_pattern | lv_array_t | |
cap | lv_vector_stroke_cap_t | |
join | lv_vector_stroke_join_t | |
miter_limit | uint16_t | |
gradient | lv_vector_gradient_t | |
matrix | lv_matrix_t |
struct
_lv_vector_path_ctx_t
Stores how to fill, stroke, transform etc a given path
| Member | Type | Description |
|---|---|---|
fill_dsc | lv_vector_fill_dsc_t | |
stroke_dsc | lv_vector_stroke_dsc_t | |
matrix | lv_matrix_t | |
blend_mode | lv_vector_blend_t | |
scissor_area | lv_area_t |
struct
_lv_draw_vector_dsc_t
| Member | Type | Description |
|---|---|---|
base | lv_draw_dsc_base_t | |
ctx | lv_vector_path_ctx_t * | The current colors, opacities, matrix, etc for the next task to be added by |
task_list | lv_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.
| Member | Type | Description |
|---|---|---|
path | lv_vector_path_t * | |
ctx | lv_vector_path_ctx_t |
Dependencies
Last updated on