Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
CTCaer
GitHub Repository: CTCaer/hekate
Path: blob/master/bdk/libs/lvgl/lv_draw/lv_draw_label.h
1476 views
1
/**
2
* @file lv_draw_label.h
3
*
4
*/
5
6
#ifndef LV_DRAW_LABEL_H
7
#define LV_DRAW_LABEL_H
8
9
#ifdef __cplusplus
10
extern "C" {
11
#endif
12
13
/*********************
14
* INCLUDES
15
*********************/
16
#include "lv_draw.h"
17
18
/*********************
19
* DEFINES
20
*********************/
21
22
/**********************
23
* TYPEDEFS
24
**********************/
25
26
/**********************
27
* GLOBAL PROTOTYPES
28
**********************/
29
30
/**
31
* Write a text
32
* @param coords coordinates of the label
33
* @param mask the label will be drawn only in this area
34
* @param style pointer to a style
35
* @param opa_scale scale down all opacities by the factor
36
* @param txt 0 terminated text to write
37
* @param flag settings for the text from 'txt_flag_t' enum
38
* @param offset text offset in x and y direction (NULL if unused)
39
*
40
*/
41
void lv_draw_label(const lv_area_t * coords,const lv_area_t * mask, const lv_style_t * style, lv_opa_t opa_scale,
42
const char * txt, lv_txt_flag_t flag, lv_point_t * offset);
43
44
/**********************
45
* MACROS
46
**********************/
47
48
49
#ifdef __cplusplus
50
} /* extern "C" */
51
#endif
52
53
#endif /*LV_DRAW_LABEL_H*/
54
55