lv_draw_blur.h

Functions

void lv_draw_blur_dsc_init(lv_draw_blur_dsc_t *dsc)

Initialize a blur draw descriptor

Parameters:

dsc – pointer to a draw descriptor

lv_draw_blur_dsc_t *lv_draw_task_get_blur_dsc(lv_draw_task_t *task)

Try to get a blur draw descriptor from a draw task.

Parameters:

task – draw task

Returns:

the task's draw descriptor or NULL if the task is not of type LV_DRAW_TASK_TYPE_BLUR

void lv_draw_blur(lv_layer_t *layer, const lv_draw_blur_dsc_t *dsc, const lv_area_t *coords)

Create a blur draw task

Parameters:
  • layer – pointer to a layer

  • dsc – pointer to an initialized lv_draw_blur_dsc_t variable

  • coords – coordinates of the character

struct lv_draw_blur_dsc_t

Public Members

lv_draw_dsc_base_t base
int32_t blur_radius

The intensity of blur.

int32_t corner_radius

The corner radius of the blurred area

lv_blur_quality_t quality

Sets whether to prefer speed or precision