/** * @file lv_draw_blend.h * */ #ifndef LV_DRAW_BLEND_H #define LV_DRAW_BLEND_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include "../lv_misc/lv_color.h" #include "../lv_misc/lv_area.h" #include "lv_draw_mask.h" /********************* * DEFINES *********************/ /********************** * TYPEDEFS **********************/ enum { LV_BLEND_MODE_NORMAL, LV_BLEND_MODE_ADDITIVE, LV_BLEND_MODE_SUBTRACTIVE, }; typedef uint8_t lv_blend_mode_t; /********************** * GLOBAL PROTOTYPES **********************/ 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_draw_mask_res_t mask_res, lv_opa_t opa, lv_blend_mode_t mode); void lv_blend_map(const lv_area_t * clip_area, const lv_area_t * map_area, const lv_color_t * map_buf, lv_opa_t * mask, lv_draw_mask_res_t mask_res, lv_opa_t opa, lv_blend_mode_t mode); /********************** * MACROS **********************/ #ifdef __cplusplus } /* extern "C" */ #endif #endif /*LV_DRAW_BLEND_H*/