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.

参数:

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.

参数:

task -- draw task

返回:

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

参数:
  • layer -- pointer to a layer

  • dsc -- pointer to a draw descriptor