blob: 9150a94119f26835497eafff66ec339369bb02b7 (
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
66
67
68
69
70
|
/**
* @file lv_calendar_private.h
*
*/
#ifndef LV_CALENDAR_PRIVATE_H
#define LV_CALENDAR_PRIVATE_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "../../core/lv_obj_private.h"
#include "lv_calendar.h"
#if LV_USE_CALENDAR
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
/*Data of calendar*/
struct lv_calendar_t {
lv_obj_t obj;
/*New data for this type*/
lv_obj_t * btnm;
lv_calendar_date_t today; /**< Date of today*/
lv_calendar_date_t showed_date; /**< Currently visible month (day is ignored)*/
lv_calendar_date_t * highlighted_dates; /**< Apply different style on these days (pointer to user-defined array)*/
size_t highlighted_dates_num; /**< Number of elements in `highlighted_days`*/
const char * map[8 * 7];
#ifdef LV_USE_CALENDAR_CHINESE
bool use_chinese_calendar;
/* 7 * 6: A week has 7 days, and the calendar displays 6 weeks in total.
20: Including the number of dates, line breaks, names for each day,
and reserving several spaces for addresses.*/
char nums [7 * 6][20];
#else
/* 7 * 6: A week has 7 days, and the calendar displays 6 weeks in total.
6: Including the number of dates, and reserving several spaces for
addresses.*/
char nums [7 * 6][4];
#endif
};
/**********************
* GLOBAL PROTOTYPES
**********************/
/**********************
* MACROS
**********************/
#endif /* LV_USE_CALENDAR */
#ifdef __cplusplus
} /*extern "C"*/
#endif
#endif /*LV_CALENDAR_PRIVATE_H*/
|