1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-21 06:53:01 +08:00
lvgl/src/lv_draw/lv_blend.h

54 lines
1.1 KiB
C
Raw Normal View History

2019-08-13 06:14:38 +02:00
/**
* @file lv_blit.h
*
*/
#ifndef LV_BLIT_H
#define LV_BLIT_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "../lv_misc/lv_color.h"
#include "../lv_misc/lv_area.h"
2019-08-21 15:44:35 +02:00
#include "lv_img_decoder.h"
#include "lv_mask.h"
2019-08-13 06:14:38 +02:00
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
typedef enum {
LV_BLIT_MODE_NORMAL,
LV_BLIT_MODE_ADDITIVE,
2019-08-21 15:44:35 +02:00
}lv_blend_mode_t;
2019-08-13 06:14:38 +02:00
/**********************
* GLOBAL PROTOTYPES
**********************/
2019-08-21 15:44:35 +02:00
void lv_blend_fill(const lv_area_t * clip_area, const lv_area_t * fill_area,
lv_color_t color, lv_opa_t * mask, lv_mask_res_t mask_res, lv_opa_t opa,
lv_blend_mode_t mode);
2019-08-23 10:53:38 +02:00
void lv_blend_map(const lv_area_t * clip_area, const lv_area_t * map_area, const lv_color_t * map_buf,
const lv_opa_t * mask, lv_mask_res_t mask_res,
lv_opa_t opa, lv_blend_mode_t mode);
2019-08-13 06:14:38 +02:00
/**********************
* MACROS
**********************/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*LV_BLIT_H*/