mikroSDK Reference Manual
lv_draw_layer.h
Go to the documentation of this file.
1
6#ifndef LV_DRAW_LAYER_H
7#define LV_DRAW_LAYER_H
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13/*********************
14 * INCLUDES
15 *********************/
16#include "../lv_conf_internal.h"
17
18/*********************
19 * DEFINES
20 *********************/
21
22/**********************
23 * TYPEDEFS
24 **********************/
25struct _lv_draw_ctx_t;
27
28typedef enum {
29 LV_DRAW_LAYER_FLAG_NONE,
30 LV_DRAW_LAYER_FLAG_HAS_ALPHA,
31 LV_DRAW_LAYER_FLAG_CAN_SUBDIVIDE,
32} lv_draw_layer_flags_t;
33
34/**********************
35 * GLOBAL PROTOTYPES
36 **********************/
37
46struct _lv_draw_layer_ctx_t * lv_draw_layer_create(struct _lv_draw_ctx_t * draw_ctx, const lv_area_t * layer_area,
47 lv_draw_layer_flags_t flags);
48
56void lv_draw_layer_adjust(struct _lv_draw_ctx_t * draw_ctx, struct _lv_draw_layer_ctx_t * layer_ctx,
57 lv_draw_layer_flags_t flags);
58
65void lv_draw_layer_blend(struct _lv_draw_ctx_t * draw_ctx, struct _lv_draw_layer_ctx_t * layer_ctx,
66 lv_draw_img_dsc_t * draw_dsc);
67
73void lv_draw_layer_destroy(struct _lv_draw_ctx_t * draw_ctx, struct _lv_draw_layer_ctx_t * layer_ctx);
74
75/**********************
76 * MACROS
77 **********************/
78
79#ifdef __cplusplus
80} /*extern "C"*/
81#endif
82
83#endif /*LV_DRAW_LAYER_H*/
void lv_draw_layer_blend(struct _lv_draw_ctx_t *draw_ctx, struct _lv_draw_layer_ctx_t *layer_ctx, lv_draw_img_dsc_t *draw_dsc)
struct _lv_draw_layer_ctx_t * lv_draw_layer_create(struct _lv_draw_ctx_t *draw_ctx, const lv_area_t *layer_area, lv_draw_layer_flags_t flags)
void lv_draw_layer_adjust(struct _lv_draw_ctx_t *draw_ctx, struct _lv_draw_layer_ctx_t *layer_ctx, lv_draw_layer_flags_t flags)
void lv_draw_layer_destroy(struct _lv_draw_ctx_t *draw_ctx, struct _lv_draw_layer_ctx_t *layer_ctx)
Definition lv_draw.h:59
Definition lv_draw.h:45
Definition lv_area.h:43
Definition lv_draw_img.h:32