16 #ifdef LV_CONF_INCLUDE_SIMPLE 19 #include "../../../lv_conf.h" 26 #error "lv_table: lv_label is required. Enable it in lv_conf.h (LV_USE_LABEL 1) " 29 #include "../lv_core/lv_obj.h" 35 #ifndef LV_TABLE_COL_MAX 36 #define LV_TABLE_COL_MAX 12 39 #define LV_TABLE_CELL_STYLE_CNT 4 54 uint8_t right_merge : 1;
59 } lv_table_cell_format_t;
68 const lv_style_t * cell_style[LV_TABLE_CELL_STYLE_CNT];
80 typedef uint8_t lv_table_style_t;
106 void lv_table_set_cell_value(
lv_obj_t * table, uint16_t row, uint16_t col,
const char * txt);
113 void lv_table_set_row_cnt(
lv_obj_t * table, uint16_t row_cnt);
120 void lv_table_set_col_cnt(
lv_obj_t * table, uint16_t col_cnt);
128 void lv_table_set_col_width(
lv_obj_t * table, uint16_t col_id, lv_coord_t w);
137 void lv_table_set_cell_align(
lv_obj_t * table, uint16_t row, uint16_t col, lv_label_align_t align);
146 void lv_table_set_cell_type(
lv_obj_t * table, uint16_t row, uint16_t col, uint8_t type);
155 void lv_table_set_cell_crop(
lv_obj_t * table, uint16_t row, uint16_t col,
bool crop);
164 void lv_table_set_cell_merge_right(
lv_obj_t * table, uint16_t row, uint16_t col,
bool en);
172 void lv_table_set_style(
lv_obj_t * table, lv_table_style_t type,
const lv_style_t * style);
185 const char * lv_table_get_cell_value(
lv_obj_t * table, uint16_t row, uint16_t col);
192 uint16_t lv_table_get_row_cnt(
lv_obj_t * table);
199 uint16_t lv_table_get_col_cnt(
lv_obj_t * table);
207 lv_coord_t lv_table_get_col_width(
lv_obj_t * table, uint16_t col_id);
217 lv_label_align_t lv_table_get_cell_align(
lv_obj_t * table, uint16_t row, uint16_t col);
226 lv_label_align_t lv_table_get_cell_type(
lv_obj_t * table, uint16_t row, uint16_t col);
235 lv_label_align_t lv_table_get_cell_crop(
lv_obj_t * table, uint16_t row, uint16_t col);
244 bool lv_table_get_cell_merge_right(
lv_obj_t * table, uint16_t row, uint16_t col);
#define LV_TABLE_COL_MAX
Definition: lv_conf_checker.h:669
struct _lv_obj_t * par
Definition: lv_obj.h:186
Definition: lv_style.h:57