Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
CTCaer
GitHub Repository: CTCaer/hekate
Path: blob/master/bdk/libs/lvgl/lv_draw/lv_draw_rbasic.h
1476 views
1
/**
2
* @file lv_draw_rbasic..h
3
*
4
*/
5
6
#ifndef LV_DRAW_RBASIC_H
7
#define LV_DRAW_RBASIC_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 USE_LV_REAL_DRAW != 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_rpx(lv_coord_t x, lv_coord_t y, const lv_area_t * mask_p, lv_color_t color, lv_opa_t opa);
41
42
/**
43
* Fill an area on the display
44
* @param cords_p coordinates of the area to fill
45
* @param mask_p fill only o this mask
46
* @param color fill color
47
* @param opa opacity (ignored, only for compatibility with lv_vfill)
48
*/
49
void lv_rfill(const lv_area_t * cords_p, const lv_area_t * mask_p,
50
lv_color_t color, lv_opa_t opa);
51
52
/**
53
* Draw a letter to the display
54
* @param pos_p left-top coordinate of the latter
55
* @param mask_p the letter will be drawn only on this area
56
* @param font_p pointer to font
57
* @param letter a letter to draw
58
* @param color color of letter
59
* @param opa opacity of letter (ignored, only for compatibility with lv_vletter)
60
*/
61
void lv_rletter(const lv_point_t * pos_p, const lv_area_t * mask_p,
62
const lv_font_t * font_p, uint32_t letter,
63
lv_color_t color, lv_opa_t opa);
64
65
/**
66
* When the letter is ant-aliased it needs to know the background color
67
* @param bg_color the background color of the currently drawn letter
68
*/
69
void lv_rletter_set_background(lv_color_t color);
70
71
72
/**
73
* Draw a color map to the display (image)
74
* @param cords_p coordinates the color map
75
* @param mask_p the map will drawn only on this area
76
* @param map_p pointer to a lv_color_t array
77
* @param opa opacity of the map (ignored, only for compatibility with 'lv_vmap')
78
* @param chroma_keyed true: enable transparency of LV_IMG_LV_COLOR_TRANSP color pixels
79
* @param alpha_byte true: extra alpha byte is inserted for every pixel (not supported, only l'v_vmap' can draw it)
80
* @param recolor mix the pixels with this color
81
* @param recolor_opa the intense of recoloring
82
*/
83
void lv_rmap(const lv_area_t * cords_p, const lv_area_t * mask_p,
84
const uint8_t * map_p, lv_opa_t opa, bool chroma_key, bool alpha_byte,
85
lv_color_t recolor, lv_opa_t recolor_opa);
86
/**********************
87
* MACROS
88
**********************/
89
90
#endif /*USE_LV_REAL_DRAW*/
91
92
#ifdef __cplusplus
93
} /* extern "C" */
94
#endif
95
96
#endif /*LV_DRAW_RBASIC_H*/
97
98