Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
CTCaer
GitHub Repository: CTCaer/hekate
Path: blob/master/bdk/libs/lvgl/lv_draw/lv_draw_vbasic.h
1476 views
1
/**
2
* @file lv_draw_vbasic.h
3
*
4
*/
5
6
#ifndef LV_DRAW_VBASIC_H
7
#define LV_DRAW_VBASIC_H
8
9
#ifdef __cplusplus
10
extern "C" {
11
#endif
12
13
/*********************
14
* INCLUDES
15
*********************/
16
#ifdef LV_CONF_INCLUDE_SIMPLE
17
#include "lv_conf.h"
18
#else
19
#include "../../lv_conf.h"
20
#endif
21
22
#if LV_VDB_SIZE != 0
23
24
#include "../lv_misc/lv_color.h"
25
#include "../lv_misc/lv_area.h"
26
#include "../lv_misc/lv_font.h"
27
28
/*********************
29
* DEFINES
30
*********************/
31
32
/**********************
33
* TYPEDEFS
34
**********************/
35
36
/**********************
37
* GLOBAL PROTOTYPES
38
**********************/
39
40
void lv_vpx(lv_coord_t x, lv_coord_t y, const lv_area_t * mask_p, lv_color_t color, lv_opa_t opa);
41
/**
42
* Fill an area in the Virtual Display Buffer
43
* @param cords_p coordinates of the area to fill
44
* @param mask_p fill only o this mask
45
* @param color fill color
46
* @param opa opacity of the area (0..255)
47
*/
48
void lv_vfill(const lv_area_t * cords_p, const lv_area_t * mask_p,
49
lv_color_t color, lv_opa_t opa);
50
51
/**
52
* Draw a letter in the Virtual Display Buffer
53
* @param pos_p left-top coordinate of the latter
54
* @param mask_p the letter will be drawn only on this area
55
* @param font_p pointer to font
56
* @param letter a letter to draw
57
* @param color color of letter
58
* @param opa opacity of letter (0..255)
59
*/
60
void lv_vletter(const lv_point_t * pos_p, const lv_area_t * mask_p,
61
const lv_font_t * font_p, uint32_t letter,
62
lv_color_t color, lv_opa_t opa);
63
64
/**
65
* Draw a color map to the display (image)
66
* @param cords_p coordinates the color map
67
* @param mask_p the map will drawn only on this area (truncated to VDB area)
68
* @param map_p pointer to a lv_color_t array
69
* @param opa opacity of the map
70
* @param chroma_keyed true: enable transparency of LV_IMG_LV_COLOR_TRANSP color pixels
71
* @param alpha_byte true: extra alpha byte is inserted for every pixel
72
* @param recolor mix the pixels with this color
73
* @param recolor_opa the intense of recoloring
74
*/
75
void lv_vmap(const lv_area_t * cords_p, const lv_area_t * mask_p,
76
const uint8_t * map_p, lv_opa_t opa, bool chroma_key, bool alpha_byte,
77
lv_color_t recolor, lv_opa_t recolor_opa);
78
79
/**********************
80
* MACROS
81
**********************/
82
83
#endif /*LV_VDB_SIZE != 0*/
84
85
#ifdef __cplusplus
86
} /* extern "C" */
87
#endif
88
89
#endif /*LV_DRAW_RBASIC_H*/
90
91