lv_draw_mask.h

Functions

void lv_draw_mask_rect_dsc_init(lv_draw_mask_rect_dsc_t *dsc)

Initialize a rectangle mask draw descriptor.

Parameters:

dsc – pointer to a draw descriptor

lv_draw_mask_rect_dsc_t *lv_draw_task_get_mask_rect_dsc(lv_draw_task_t *task)

Try to get a rectangle mask 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_MASK_RECTANGLE

void lv_draw_mask_rect(lv_layer_t *layer, const lv_draw_mask_rect_dsc_t *dsc)

Create a draw task to mask a rectangle from the buffer

Parameters:
  • layer – pointer to a layer

  • dsc – pointer to a draw descriptor