lv_vg_lite_grad.h
Functions
-
struct _lv_vg_lite_grad_ctx_t *lv_vg_lite_grad_ctx_create(uint32_t cache_cnt, struct _lv_draw_vg_lite_unit_t *unit)
Create a gradient context.
- Parameters:
cache_cnt – number of cache entries
unit – the draw unit
-
void lv_vg_lite_grad_ctx_delete(struct _lv_vg_lite_grad_ctx_t *ctx)
Delete a gradient context.
- Parameters:
ctx – the gradient context to delete
-
struct _lv_vg_lite_pending_t *lv_vg_lite_grad_ctx_get_pending(struct _lv_vg_lite_grad_ctx_t *ctx)
Get the pending list of gradient items.
- Parameters:
ctx – the gradient context
-
bool lv_vg_lite_draw_grad(struct _lv_vg_lite_grad_ctx_t *ctx, vg_lite_buffer_t *buffer, vg_lite_path_t *path, const lv_vector_gradient_t *grad, const vg_lite_matrix_t *grad_matrix, const vg_lite_matrix_t *matrix, vg_lite_fill_t fill, vg_lite_blend_t blend)
Draw a gradient.
- Parameters:
ctx – the gradient context
buffer – the target buffer
path – the path to draw the gradient on
grad – the gradient descriptor
grad_matrix – the gradient matrix
matrix – the matrix to apply to the gradient
fill – the fill rule
blend – the blend mode
- Returns:
true: success, false: failed
-
bool lv_vg_lite_draw_grad_helper(struct _lv_vg_lite_grad_ctx_t *ctx, vg_lite_buffer_t *buffer, vg_lite_path_t *path, const lv_area_t *area, const lv_grad_dsc_t *grad_dsc, const vg_lite_matrix_t *matrix, vg_lite_fill_t fill, vg_lite_blend_t blend)
Draw a gradient helper.
- Parameters:
ctx – the gradient context
buffer – the target buffer
path – the path to draw the gradient on
area – the area to draw the gradient on
grad_dsc – the gradient descriptor
matrix – the matrix to apply to the gradient
fill – the fill rule
blend – the blend mode
- Returns:
true: success, false: failed