lv_draw_mask.h
API reference for lv_draw_mask.h
Summary
Functions
public/draw/lv_draw_mask.h:58function
lv_draw_task_get_mask_rect_dsc
Try to get a rectangle mask draw descriptor from a draw task.
lv_draw_mask_rect_dsc_t * lv_draw_task_get_mask_rect_dsc(lv_draw_task_t *task)| Name | Type | Description |
|---|---|---|
task | lv_draw_task_t * | draw task |
Returns: lv_draw_mask_rect_dsc_t * — the task's draw descriptor or NULL if the task is not of type LV_DRAW_TASK_TYPE_MASK_RECTANGLE
public/draw/lv_draw_mask.h:51function
lv_draw_mask_rect_dsc_init
Initialize a rectangle mask draw descriptor.
void lv_draw_mask_rect_dsc_init(lv_draw_mask_rect_dsc_t *dsc)| Name | Type | Description |
|---|---|---|
dsc | lv_draw_mask_rect_dsc_t * | pointer to a draw descriptor |
public/draw/lv_draw_mask.h:65function
lv_draw_mask_rect
Create a draw task to mask a rectangle from the buffer
void lv_draw_mask_rect(lv_layer_t *layer, const lv_draw_mask_rect_dsc_t *dsc)| Name | Type | Description |
|---|---|---|
layer | lv_layer_t * | pointer to a layer |
dsc | const lv_draw_mask_rect_dsc_t * | pointer to a draw descriptor |
Structs
struct
_lv_draw_mask_rect_dsc_t
| Member | Type | Description |
|---|---|---|
base | lv_draw_dsc_base_t | |
area | lv_area_t | The area to mask. |
radius | int32_t | The radius of masking |
keep_outside | uint32_t | 0: clear the content out of the area. 1: don't touch the area out of area |
Dependencies
Indirect dependencies
lv_anim.hlv_assert.hlv_bidi.hlv_color_op.hlv_conf_internal.hlv_draw_buf.hlv_event.hlv_ext_data.hlv_flex.hlv_font.hlv_grad.hlv_grid.hlv_image_dsc.hlv_layout.hlv_log.hlv_math.hlv_matrix.hlv_mem.hlv_palette.hlv_profiler.hlv_profiler_builtin.hlv_sprintf.hlv_string.hlv_style_gen.hlv_symbol_def.hlv_text.hlv_types.h
Last updated on