blob: 099ea1b7e62e83c7697908ef1060a788a6936480 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
/**
* @file lv_span_private.h
*
*/
#ifndef LV_SPAN_PRIVATE_H
#define LV_SPAN_PRIVATE_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "../../core/lv_obj_private.h"
#include "lv_span.h"
#if LV_USE_SPAN != 0
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
struct lv_span_t {
char * txt; /**< a pointer to display text */
lv_obj_t * spangroup; /**< a pointer to spangroup */
lv_style_t style; /**< display text style */
uint32_t static_flag : 1; /**< the text is static flag */
};
/** Data of label*/
struct lv_spangroup_t {
lv_obj_t obj;
int32_t lines;
int32_t indent; /**< first line indent */
int32_t cache_w; /**< the cache automatically calculates the width */
int32_t cache_h; /**< similar cache_w */
lv_ll_t child_ll;
uint32_t mode : 2; /**< details see lv_span_mode_t */
uint32_t overflow : 1; /**< details see lv_span_overflow_t */
uint32_t refresh : 1; /**< the spangroup need refresh cache_w and cache_h */
};
/**********************
* GLOBAL PROTOTYPES
**********************/
/**********************
* MACROS
**********************/
#endif /* LV_USE_SPAN != 0 */
#ifdef __cplusplus
} /*extern "C"*/
#endif
#endif /*LV_SPAN_PRIVATE_H*/
|