aboutsummaryrefslogtreecommitdiff
path: root/src/widgets/table/lv_table_private.h
blob: 901fc30e0f5ad15a566b0af45f042558081b98af (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
/**
 * @file lv_table_private.h
 *
 */

#ifndef LV_TABLE_PRIVATE_H
#define LV_TABLE_PRIVATE_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************
 *      INCLUDES
 *********************/

#include "lv_table.h"

#if LV_USE_TABLE != 0

/*********************
 *      DEFINES
 *********************/

/**********************
 *      TYPEDEFS
 **********************/

/** Cell data */
struct lv_table_cell_t {
    lv_table_cell_ctrl_t ctrl;
    void * user_data; /**< Custom user data */
    char txt[1];      /**< Variable length array */
};

/** Table data */
struct lv_table_t {
    lv_obj_t obj;
    uint32_t col_cnt;
    uint32_t row_cnt;
    lv_table_cell_t ** cell_data;
    int32_t * row_h;
    int32_t * col_w;
    uint32_t col_act;
    uint32_t row_act;
};


/**********************
 * GLOBAL PROTOTYPES
 **********************/

/**********************
 *      MACROS
 **********************/

#endif /* LV_USE_TABLE != 0 */

#ifdef __cplusplus
} /*extern "C"*/
#endif

#endif /*LV_TABLE_PRIVATE_H*/