1 /**
2  * @file lv_draw_sdl_refr.h
3  *
4  */
5 
6 #ifndef LV_TEMPL_H
7 #define LV_TEMPL_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 /*********************
14  *      INCLUDES
15  *********************/
16 #include "lv_draw_sdl.h"
17 
18 /*********************
19  *      DEFINES
20  *********************/
21 
22 /**********************
23  *      TYPEDEFS
24  **********************/
25 typedef struct _lv_draw_sdl_layer_ctx_t {
26     lv_draw_layer_ctx_t base;
27 
28     SDL_Texture * orig_target;
29     SDL_Texture * target;
30     SDL_Rect target_rect;
31     lv_draw_layer_flags_t flags;
32 } lv_draw_sdl_layer_ctx_t;
33 /**********************
34  * GLOBAL PROTOTYPES
35  **********************/
36 
37 lv_draw_layer_ctx_t * lv_draw_sdl_layer_init(lv_draw_ctx_t * draw_ctx, lv_draw_layer_ctx_t * layer_ctx,
38                                              lv_draw_layer_flags_t flags);
39 
40 void lv_draw_sdl_layer_blend(lv_draw_ctx_t * draw_ctx, lv_draw_layer_ctx_t * transform_ctx,
41                              const lv_draw_img_dsc_t * draw_dsc);
42 
43 void lv_draw_sdl_layer_destroy(lv_draw_ctx_t * draw_ctx, lv_draw_layer_ctx_t * layer_ctx);
44 
45 void lv_draw_sdl_transform_areas_offset(lv_draw_sdl_ctx_t * ctx, bool has_composite, lv_area_t * apply_area,
46                                         lv_area_t * coords, lv_area_t * clip);
47 /**********************
48  *      MACROS
49  **********************/
50 
51 #ifdef __cplusplus
52 } /*extern "C"*/
53 #endif
54 
55 #endif /*LV_TEMPL_H*/
56