1 /**
2  * @file lv_table_private.h
3  *
4  */
5 
6 #ifndef LV_TABLE_PRIVATE_H
7 #define LV_TABLE_PRIVATE_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 /*********************
14  *      INCLUDES
15  *********************/
16 
17 #include "lv_table.h"
18 
19 #if LV_USE_TABLE != 0
20 #include "../../core/lv_obj_private.h"
21 
22 /*********************
23  *      DEFINES
24  *********************/
25 
26 /**********************
27  *      TYPEDEFS
28  **********************/
29 
30 /** Cell data */
31 struct _lv_table_cell_t {
32     lv_table_cell_ctrl_t ctrl;
33     void * user_data; /**< Custom user data */
34     char txt[1];      /**< Variable length array */
35 };
36 
37 /** Table data */
38 struct _lv_table_t {
39     lv_obj_t obj;
40     uint32_t col_cnt;
41     uint32_t row_cnt;
42     lv_table_cell_t ** cell_data;
43     int32_t * row_h;
44     int32_t * col_w;
45     uint32_t col_act;
46     uint32_t row_act;
47 };
48 
49 
50 /**********************
51  * GLOBAL PROTOTYPES
52  **********************/
53 
54 /**********************
55  *      MACROS
56  **********************/
57 
58 #endif /* LV_USE_TABLE != 0 */
59 
60 #ifdef __cplusplus
61 } /*extern "C"*/
62 #endif
63 
64 #endif /*LV_TABLE_PRIVATE_H*/
65