lv_draw_vector_private.h¶
Functions
-
void lv_vector_for_each_destroy_tasks(lv_ll_t *task_list, vector_draw_task_cb cb, void *used_data)¶
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.
- Parameters:
task_list – pointer to the linked list in
lv_draw_vector_dsc_t
that stores the path shapes and their attributes.cb – the callback used to iterate through the task
user_data – a custom pointer that will be passed to the callback
-
struct _lv_vector_path_t¶
- #include <lv_draw_vector_private.h>
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.
-
struct _lv_vector_gradient_t¶
-
struct _lv_vector_fill_dsc_t¶
Public Members
-
lv_vector_draw_style_t style¶
-
lv_color32_t color¶
-
lv_opa_t opa¶
-
lv_vector_fill_t fill_rule¶
-
lv_vector_fill_units_t fill_units¶
-
lv_draw_image_dsc_t img_dsc¶
-
lv_vector_gradient_t gradient¶
-
lv_matrix_t matrix¶
-
lv_vector_draw_style_t style¶
-
struct _lv_vector_stroke_dsc_t¶
Public Members
-
lv_vector_draw_style_t style¶
-
lv_color32_t color¶
-
lv_opa_t opa¶
-
float width¶
-
lv_array_t dash_pattern¶
-
uint16_t miter_limit¶
-
lv_vector_gradient_t gradient¶
-
lv_matrix_t matrix¶
-
lv_vector_draw_style_t style¶
-
struct _lv_vector_path_ctx_t¶
- #include <lv_draw_vector_private.h>
Stores how to fill, stroke, transform etc a given path
-
struct _lv_draw_vector_dsc_t¶
Public Members
-
lv_draw_dsc_base_t base¶
-
lv_vector_path_ctx_t *ctx¶
The current colors, opacities, matrix, etc for the next task to be added by
-
lv_ll_t *task_list¶
Store path shapes and their attributes in a list as
lv_draw_vector_subtask_t
.
-
lv_draw_dsc_base_t base¶
-
struct lv_draw_vector_subtask_t¶
- #include <lv_draw_vector_private.h>
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
oflv_draw_vector_dsc_t
.