Debian Codegraph @

lvgl/src/draw/sw/blend/lv_draw_sw_blend.h

raw symbols SCIP
1 /**
2 * @file lv_draw_sw_blend.h
3 *
4 */
5
6 #ifndef LV_DRAW_SW_BLEND_H
7 #define LV_DRAW_SW_BLEND_H
8
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
13 /*********************
14 * INCLUDES
15 *********************/
16 #include "../lv_draw_sw_mask.h"
17 #if LV_USE_DRAW_SW
18
19 #include "../../../misc/lv_color.h"
20 #include "../../../misc/lv_area.h"
21 #include "../../../misc/lv_style.h"
22
23 /*********************
24 * DEFINES
25 *********************/
26
27 /**********************
28 * TYPEDEFS
29 **********************/
30
31 /**********************
32 * GLOBAL PROTOTYPES
33 **********************/
34
35 /**
36 * Custom draw function for SW rendering.
37 * @param t pointer to a draw task
38 * @param dsc pointer to an initialized blend descriptor
39 */
40 typedef void (*lv_draw_sw_blend_handler_t)(lv_draw_task_t * t, const lv_draw_sw_blend_dsc_t * dsc);
41
42 typedef struct {
43 lv_color_format_t dest_cf;
44 lv_draw_sw_blend_handler_t handler;
45 } lv_draw_sw_custom_blend_handler_t;
46
47 /**
48 * Call the blend function of the `layer`.
49 * @param draw_unit pointer to a draw unit
50 * @param dsc pointer to an initialized blend descriptor
51 */
52 void lv_draw_sw_blend(lv_draw_task_t * t, const lv_draw_sw_blend_dsc_t * dsc);
53
54 /**********************
55 * MACROS
56 **********************/
57
58 #endif /*LV_USE_DRAW_SW*/
59
60 #ifdef __cplusplus
61 } /*extern "C"*/
62 #endif
63
64 #endif /*LV_DRAW_SW_BLEND_H*/