lv_vg_lite_grad.h
API reference for lv_vg_lite_grad.h
Summary
Functions
lv_vg_lite_grad_ctx_get_pending
Get the pending list of gradient items.
struct _lv_vg_lite_pending_t * lv_vg_lite_grad_ctx_get_pending(struct _lv_vg_lite_grad_ctx_t *ctx)| Name | Type | Description |
|---|---|---|
ctx | struct _lv_vg_lite_grad_ctx_t * | the gradient context |
lv_vg_lite_grad_ctx_get_cache
Get the cache of gradient items.
struct _lv_cache_t * lv_vg_lite_grad_ctx_get_cache(struct _lv_vg_lite_grad_ctx_t *ctx)| Name | Type | Description |
|---|---|---|
ctx | struct _lv_vg_lite_grad_ctx_t * | the gradient context |
lv_vg_lite_grad_ctx_create
Create a gradient context.
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)| Name | Type | Description |
|---|---|---|
cache_cnt | uint32_t | number of cache entries |
unit | struct _lv_draw_vg_lite_unit_t * | the draw unit |
lv_vg_lite_grad_ctx_delete
Delete a gradient context.
void lv_vg_lite_grad_ctx_delete(struct _lv_vg_lite_grad_ctx_t *ctx)| Name | Type | Description |
|---|---|---|
ctx | struct _lv_vg_lite_grad_ctx_t * | the gradient context to delete |
lv_vg_lite_draw_grad
Draw a gradient.
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)| Name | Type | Description |
|---|---|---|
ctx | struct _lv_vg_lite_grad_ctx_t * | the gradient context |
buffer | vg_lite_buffer_t * | the target buffer |
path | vg_lite_path_t * | the path to draw the gradient on |
grad | const lv_vector_gradient_t * | the gradient descriptor |
grad_matrix | const vg_lite_matrix_t * | the gradient matrix |
matrix | const vg_lite_matrix_t * | the matrix to apply to the gradient |
fill | vg_lite_fill_t | the fill rule |
blend | vg_lite_blend_t | the blend mode |
Returns: bool — true: success, false: failed
lv_vg_lite_draw_grad_helper
Draw a gradient helper.
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)| Name | Type | Description |
|---|---|---|
ctx | struct _lv_vg_lite_grad_ctx_t * | the gradient context |
buffer | vg_lite_buffer_t * | the target buffer |
path | vg_lite_path_t * | the path to draw the gradient on |
area | const lv_area_t * | the area to draw the gradient on |
grad_dsc | const lv_grad_dsc_t * | the gradient descriptor |
matrix | const vg_lite_matrix_t * | the matrix to apply to the gradient |
fill | vg_lite_fill_t | the fill rule |
blend | vg_lite_blend_t | the blend mode |
Returns: bool — true: success, false: failed
Dependencies
lvgl_public.hlv_vg_lite_utils.h
Last updated on