1 /**
2  * @file lv_draw_vg_lite.h
3  *
4  */
5 
6 #ifndef LV_DRAW_VG_LITE_H
7 #define LV_DRAW_VG_LITE_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 /*********************
14  *      INCLUDES
15  *********************/
16 
17 #include "../../lv_conf_internal.h"
18 
19 #if LV_USE_DRAW_VG_LITE
20 
21 #include "../lv_draw.h"
22 #include "../../draw/lv_draw_vector.h"
23 #include "../../draw/lv_draw_arc.h"
24 #include "../../draw/lv_draw_rect.h"
25 #include "../../draw/lv_draw_image.h"
26 #include "../../draw/lv_draw_label.h"
27 #include "../../draw/lv_draw_line.h"
28 #include "../../draw/lv_draw_triangle.h"
29 
30 /*********************
31  *      DEFINES
32  *********************/
33 
34 /**********************
35  *      TYPEDEFS
36  **********************/
37 
38 /**********************
39  * GLOBAL PROTOTYPES
40  **********************/
41 
42 void lv_draw_buf_vg_lite_init_handlers(void);
43 
44 void lv_draw_vg_lite_init(void);
45 
46 void lv_draw_vg_lite_deinit(void);
47 
48 void lv_draw_vg_lite_arc(lv_draw_unit_t * draw_unit, const lv_draw_arc_dsc_t * dsc,
49                          const lv_area_t * coords);
50 
51 void lv_draw_vg_lite_box_shadow(lv_draw_unit_t * draw_unit, const lv_draw_box_shadow_dsc_t * dsc,
52                                 const lv_area_t * coords);
53 
54 void lv_draw_vg_lite_border(lv_draw_unit_t * draw_unit, const lv_draw_border_dsc_t * dsc,
55                             const lv_area_t * coords);
56 
57 void lv_draw_vg_lite_fill(lv_draw_unit_t * draw_unit, const lv_draw_fill_dsc_t * dsc,
58                           const lv_area_t * coords);
59 
60 void lv_draw_vg_lite_img(lv_draw_unit_t * draw_unit, const lv_draw_image_dsc_t * dsc,
61                          const lv_area_t * coords, bool no_cache);
62 
63 void lv_draw_vg_lite_label_init(lv_draw_unit_t * draw_unit);
64 
65 void lv_draw_vg_lite_letter(lv_draw_unit_t * draw_unit, const lv_draw_letter_dsc_t * dsc, const lv_area_t * coords);
66 
67 void lv_draw_vg_lite_label(lv_draw_unit_t * draw_unit, const lv_draw_label_dsc_t * dsc,
68                            const lv_area_t * coords);
69 
70 void lv_draw_vg_lite_layer(lv_draw_unit_t * draw_unit, const lv_draw_image_dsc_t * draw_dsc,
71                            const lv_area_t * coords);
72 
73 void lv_draw_vg_lite_line(lv_draw_unit_t * draw_unit, const lv_draw_line_dsc_t * dsc);
74 
75 void lv_draw_vg_lite_triangle(lv_draw_unit_t * draw_unit, const lv_draw_triangle_dsc_t * dsc);
76 
77 void lv_draw_vg_lite_mask_rect(lv_draw_unit_t * draw_unit, const lv_draw_mask_rect_dsc_t * dsc,
78                                const lv_area_t * coords);
79 
80 #if LV_USE_VECTOR_GRAPHIC
81 void lv_draw_vg_lite_vector(lv_draw_unit_t * draw_unit, const lv_draw_vector_task_dsc_t * dsc);
82 #endif
83 
84 /**********************
85  *      MACROS
86  **********************/
87 
88 #endif /*LV_USE_DRAW_VG_LITE*/
89 
90 #ifdef __cplusplus
91 } /*extern "C"*/
92 #endif
93 
94 #endif /*LV_DRAW_VG_LITE_H*/
95