2019-08-13 06:14:38 +02:00
|
|
|
/**
|
2019-09-06 12:24:15 +02:00
|
|
|
* @file lv_draw_blend.h
|
2019-08-13 06:14:38 +02:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2019-09-06 12:24:15 +02:00
|
|
|
#ifndef LV_DRAW_BLEND_H
|
|
|
|
#define LV_DRAW_BLEND_H
|
2019-08-13 06:14:38 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*********************
|
|
|
|
* INCLUDES
|
|
|
|
*********************/
|
|
|
|
#include "../lv_misc/lv_color.h"
|
|
|
|
#include "../lv_misc/lv_area.h"
|
2019-09-06 12:24:15 +02:00
|
|
|
#include "lv_draw_mask.h"
|
2019-08-13 06:14:38 +02:00
|
|
|
|
|
|
|
/*********************
|
|
|
|
* DEFINES
|
|
|
|
*********************/
|
|
|
|
|
|
|
|
/**********************
|
|
|
|
* TYPEDEFS
|
|
|
|
**********************/
|
2019-09-06 09:25:08 +02:00
|
|
|
enum {
|
|
|
|
LV_BLEND_MODE_NORMAL,
|
|
|
|
LV_BLEND_MODE_ADDITIVE,
|
|
|
|
LV_BLEND_MODE_SUBTRACTIVE,
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef uint8_t lv_blend_mode_t;
|
2019-08-13 06:14:38 +02:00
|
|
|
|
|
|
|
/**********************
|
|
|
|
* GLOBAL PROTOTYPES
|
|
|
|
**********************/
|
2019-08-21 15:44:35 +02:00
|
|
|
|
2019-09-14 11:46:25 +02:00
|
|
|
void lv_blend_fill(const lv_area_t * clip_area, const lv_area_t * fill_area, lv_color_t color,
|
2020-02-26 19:48:27 +01:00
|
|
|
lv_opa_t * mask, lv_draw_mask_res_t mask_res, lv_opa_t opa, lv_blend_mode_t mode);
|
2019-08-23 10:53:38 +02:00
|
|
|
|
|
|
|
|
2019-08-27 06:11:33 +02:00
|
|
|
void lv_blend_map(const lv_area_t * clip_area, const lv_area_t * map_area, const lv_color_t * map_buf,
|
2019-09-14 11:46:25 +02:00
|
|
|
lv_opa_t * mask, lv_draw_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
|
|
|
|
|
2019-09-06 12:24:15 +02:00
|
|
|
#endif /*LV_DRAW_BLEND_H*/
|