lv_draw_vector.h API reference for lv_draw_vector.h
See Also: Private Header This header has a companion private implementation with internal data structures. lv_draw_vector_private.h
Setters (26) Functions that modify object properties
Getters (2) Functions that read object properties
Other (27) Constructors, destructors, and utilities
Set a matrix to current transformation matrix. The new path shapes added by lv_draw_vector_dsc_add_path will use this matrix.
void lv_draw_vector_dsc_set_transform ( lv_draw_vector_dsc_t * dsc , const lv_matrix_t * matrix ) Parameters Set blend mode for descriptor. The new path shapes added by lv_draw_vector_dsc_add_path will use this blend mode.
void lv_draw_vector_dsc_set_blend_mode ( lv_draw_vector_dsc_t * dsc , lv_vector_blend_t blend ) Parameters Set the fill color for descriptor. The new path shapes added by lv_draw_vector_dsc_add_path will use this color.
void lv_draw_vector_dsc_set_fill_color32 ( lv_draw_vector_dsc_t * dsc , lv_color32_t color ) Parameters Set fill color for descriptor. The new path shapes added by lv_draw_vector_dsc_add_path will use this color.
void lv_draw_vector_dsc_set_fill_color ( lv_draw_vector_dsc_t * dsc , lv_color_t color ) Parameters Set fill opacity for descriptor. The new path shapes added by lv_draw_vector_dsc_add_path will use this opacity.
void lv_draw_vector_dsc_set_fill_opa ( lv_draw_vector_dsc_t * dsc , lv_opa_t opa ) Parameters Set fill rule for descriptor. The new path shapes added by lv_draw_vector_dsc_add_path will use this fill rule.
void lv_draw_vector_dsc_set_fill_rule ( lv_draw_vector_dsc_t * dsc , lv_vector_fill_t rule ) Parameters Set the fill units for descriptor. The new path shapes added by lv_draw_vector_dsc_add_path will use this fill units.
void lv_draw_vector_dsc_set_fill_units ( lv_draw_vector_dsc_t * dsc , const lv_vector_fill_units_t units ) Parameters
The units can be either relative to the object bounding box or absolute in user space. This API specifically affects the drawing position of the fill image and does not impact other elements.
Set fill image for descriptor. The new path shapes added by lv_draw_vector_dsc_add_path will use this fill image.
void lv_draw_vector_dsc_set_fill_image ( lv_draw_vector_dsc_t * dsc , const lv_draw_image_dsc_t * img_dsc ) Parameters Set fill linear gradient for descriptor The new path shapes added by lv_draw_vector_dsc_add_path will use this gradient.
void lv_draw_vector_dsc_set_fill_linear_gradient ( lv_draw_vector_dsc_t * dsc , float x1 , float y1 , float x2 , float y2 ) Parameters Name Type Description dsclv_draw_vector_dsc_t *pointer to a vector graphic descriptor x1floatthe x for start point y1floatthe y for start point x2floatthe x for end point y2floatthe y for end point
Set fill radial gradient radius for descriptor The new path shapes added by lv_draw_vector_dsc_add_path will use this gradient.
void lv_draw_vector_dsc_set_fill_radial_gradient ( lv_draw_vector_dsc_t * dsc , float cx , float cy , float radius ) Parameters Name Type Description dsclv_draw_vector_dsc_t *pointer to a vector graphic descriptor cxfloatthe x for center of the circle cyfloatthe y for center of the circle radiusfloatthe radius for circle
Set fill radial gradient spread for descriptor
void lv_draw_vector_dsc_set_fill_gradient_spread ( lv_draw_vector_dsc_t * dsc , lv_vector_gradient_spread_t spread ) Parameters Set fill gradient color stops for descriptor. The new path shapes added by lv_draw_vector_dsc_add_path will use this gradient color stops.
void lv_draw_vector_dsc_set_fill_gradient_color_stops ( lv_draw_vector_dsc_t * dsc , const lv_grad_stop_t * stops , uint16_t count ) Parameters Set a matrix to current fill transformation matrix The new path shapes added by lv_draw_vector_dsc_add_path will use this matrix.
void lv_draw_vector_dsc_set_fill_transform ( lv_draw_vector_dsc_t * dsc , const lv_matrix_t * matrix ) Parameters Set stroke color for descriptor. The new path shapes added by lv_draw_vector_dsc_add_path will use this color.
void lv_draw_vector_dsc_set_stroke_color32 ( lv_draw_vector_dsc_t * dsc , lv_color32_t color ) Parameters Set stroke color for descriptor. The new path shapes added by lv_draw_vector_dsc_add_path will use this color.
void lv_draw_vector_dsc_set_stroke_color ( lv_draw_vector_dsc_t * dsc , lv_color_t color ) Parameters Set stroke opacity for descriptor
void lv_draw_vector_dsc_set_stroke_opa ( lv_draw_vector_dsc_t * dsc , lv_opa_t opa ) Parameters Set stroke line width for descriptor. The new path shapes added by lv_draw_vector_dsc_add_path will use this stroke width.
void lv_draw_vector_dsc_set_stroke_width ( lv_draw_vector_dsc_t * dsc , float width ) Parameters Name Type Description dsclv_draw_vector_dsc_t *pointer to a vector graphic descriptor widthfloatthe stroke line width
Set stroke line dash pattern for descriptor The new path shapes added by lv_draw_vector_dsc_add_path will use this dash.
void lv_draw_vector_dsc_set_stroke_dash ( lv_draw_vector_dsc_t * dsc , float * dash_pattern , uint16_t dash_count ) Parameters Name Type Description dsclv_draw_vector_dsc_t *pointer to a vector graphic descriptor dash_patternfloat *an array of values that specify the segments of dash line dash_countuint16_tthe length of dash pattern array
Set stroke line cap style for descriptor The new path shapes added by lv_draw_vector_dsc_add_path will use this line cap.
void lv_draw_vector_dsc_set_stroke_cap ( lv_draw_vector_dsc_t * dsc , lv_vector_stroke_cap_t cap ) Parameters Set stroke line join style for descriptor
void lv_draw_vector_dsc_set_stroke_join ( lv_draw_vector_dsc_t * dsc , lv_vector_stroke_join_t join ) Parameters Set stroke miter limit for descriptor The new path shapes added by lv_draw_vector_dsc_add_path will use this miter limit.
void lv_draw_vector_dsc_set_stroke_miter_limit ( lv_draw_vector_dsc_t * dsc , uint16_t miter_limit ) Parameters Set stroke linear gradient for descriptor The new path shapes added by lv_draw_vector_dsc_add_path will use this gradient.
void lv_draw_vector_dsc_set_stroke_linear_gradient ( lv_draw_vector_dsc_t * dsc , float x1 , float y1 , float x2 , float y2 ) Parameters Name Type Description dsclv_draw_vector_dsc_t *pointer to a vector graphic descriptor x1floatthe x for start point y1floatthe y for start point x2floatthe x for end point y2floatthe y for end point
Set stroke radial gradient for descriptor The new path shapes added by lv_draw_vector_dsc_add_path will use this gradient.
void lv_draw_vector_dsc_set_stroke_radial_gradient ( lv_draw_vector_dsc_t * dsc , float cx , float cy , float radius ) Parameters Name Type Description dsclv_draw_vector_dsc_t *pointer to a vector graphic descriptor cxfloatthe x for center of the circle cyfloatthe y for center of the circle radiusfloatthe radius for circle
Set stroke color stops for descriptor The new path shapes added by lv_draw_vector_dsc_add_path will use this gradient spread.
void lv_draw_vector_dsc_set_stroke_gradient_spread ( lv_draw_vector_dsc_t * dsc , lv_vector_gradient_spread_t spread ) Parameters Set stroke color stops for descriptor The new path shapes added by lv_draw_vector_dsc_add_path will use this color stops.
void lv_draw_vector_dsc_set_stroke_gradient_color_stops ( lv_draw_vector_dsc_t * dsc , const lv_grad_stop_t * stops , uint16_t count ) Parameters Set a matrix to current stroke transformation matrix. The new path shapes added by lv_draw_vector_dsc_add_path will use this matrix.
void lv_draw_vector_dsc_set_stroke_transform ( lv_draw_vector_dsc_t * dsc , const lv_matrix_t * matrix ) Parameters
Name Value LV_VECTOR_FILL_NONZERO0LV_VECTOR_FILL_EVENODD
Used by 1 function
lv_draw_vector_dsc_set_fill_rule — param rule
Name Value LV_VECTOR_STROKE_CAP_BUTT0LV_VECTOR_STROKE_CAP_SQUARELV_VECTOR_STROKE_CAP_ROUND
Used by 1 function
lv_draw_vector_dsc_set_stroke_cap — param cap
Name Value LV_VECTOR_STROKE_JOIN_MITER0LV_VECTOR_STROKE_JOIN_BEVELLV_VECTOR_STROKE_JOIN_ROUND
Used by 1 function
lv_draw_vector_dsc_set_stroke_join — param join
Name Value LV_VECTOR_PATH_QUALITY_MEDIUM0LV_VECTOR_PATH_QUALITY_HIGHLV_VECTOR_PATH_QUALITY_LOW
Used by 1 function
lv_vector_path_create — param quality
Name Value LV_VECTOR_BLEND_SRC_OVER0LV_VECTOR_BLEND_SRC_INLV_VECTOR_BLEND_DST_OVERLV_VECTOR_BLEND_DST_INLV_VECTOR_BLEND_SCREENLV_VECTOR_BLEND_MULTIPLYLV_VECTOR_BLEND_NONELV_VECTOR_BLEND_ADDITIVELV_VECTOR_BLEND_SUBTRACTIVE
Used by 1 function
lv_draw_vector_dsc_set_blend_mode — param blend
Name Value LV_VECTOR_PATH_OP_MOVE_TO0LV_VECTOR_PATH_OP_LINE_TOLV_VECTOR_PATH_OP_QUAD_TOLV_VECTOR_PATH_OP_CUBIC_TOLV_VECTOR_PATH_OP_CLOSE
Name Value LV_VECTOR_DRAW_STYLE_SOLID0LV_VECTOR_DRAW_STYLE_PATTERNLV_VECTOR_DRAW_STYLE_GRADIENT
Name Value LV_VECTOR_GRADIENT_SPREAD_PAD0LV_VECTOR_GRADIENT_SPREAD_REPEATLV_VECTOR_GRADIENT_SPREAD_REFLECT
Used by 2 functions
lv_draw_vector_dsc_set_fill_gradient_spread — param spread
lv_draw_vector_dsc_set_stroke_gradient_spread — param spread
Name Value LV_VECTOR_GRADIENT_STYLE_LINEAR0LV_VECTOR_GRADIENT_STYLE_RADIAL
Name Value Description LV_VECTOR_FILL_UNITS_OBJECT_BOUNDING_BOX0LV_VECTOR_FILL_UNITS_USER_SPACE_ON_USERelative coordinates relative to the object bounding box.
Used by 1 function
lv_draw_vector_dsc_set_fill_units — param units
Member Type Description xfloatyfloat
typedef void ( * vector_draw_task_cb) ( void * ctx, const lv_vector_path_t * path, const lv_vector_path_ctx_t * dsc)
Used by 1 function
lv_vector_for_each_destroy_tasks — param cb
Includes (3) Included By (4) Transitive (36)
How is this guide?
Good Bad
Last updated on