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 *used_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 |
used_data | void * |
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
Indirect dependencies
lv_anim.hlv_area.hlv_array.hlv_assert.hlv_bidi.hlv_color.hlv_color_op.hlv_conf_internal.hlv_conf_kconfig.hlv_draw.hlv_draw_buf.hlv_draw_image.hlv_event.hlv_ext_data.hlv_flex.hlv_font.hlv_fs.hlv_grad.hlv_grid.hlv_image_decoder.hlv_image_dsc.hlv_layout.hlv_ll.hlv_log.hlv_math.hlv_matrix.hlv_mem.hlv_palette.hlv_profiler.hlv_profiler_builtin.hlv_sprintf.hlv_string.hlv_style.hlv_style_gen.hlv_symbol_def.hlv_text.hlv_tick.hlv_timer.hlv_types.h
How is this guide?
Last updated on