Lines Matching refs:table
7 static lv_obj_t * table = NULL; variable
12 table = lv_table_create(scr); in setUp()
26 lv_table_set_cell_value(table, row, column, value); in test_table_should_return_assigned_cell_value()
28 TEST_ASSERT_EQUAL_STRING(value, lv_table_get_cell_value(table, row, column)); in test_table_should_return_assigned_cell_value()
34 uint16_t original_column_count = lv_table_get_col_cnt(table); in test_table_should_grow_columns_automatically_when_setting_formatted_cell_value()
38 lv_table_set_cell_value_fmt(table, 0, 1, "LVGL %s", "Rocks!"); in test_table_should_grow_columns_automatically_when_setting_formatted_cell_value()
42 TEST_ASSERT_EQUAL_UINT16(expected_column_count, lv_table_get_col_cnt(table)); in test_table_should_grow_columns_automatically_when_setting_formatted_cell_value()
49 has_ctrl = lv_table_has_cell_ctrl(table, 0, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_should_identify_cell_with_ctrl()
53 lv_table_add_cell_ctrl(table, 0, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_should_identify_cell_with_ctrl()
54 has_ctrl = lv_table_has_cell_ctrl(table, 0, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_should_identify_cell_with_ctrl()
62 lv_table_add_cell_ctrl(table, 0, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_should_clear_selected_cell_ctrl()
63 has_ctrl = lv_table_has_cell_ctrl(table, 0, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_should_clear_selected_cell_ctrl()
66 lv_table_clear_cell_ctrl(table, 0, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_should_clear_selected_cell_ctrl()
67 has_ctrl = lv_table_has_cell_ctrl(table, 0, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_should_clear_selected_cell_ctrl()
75 …lv_table_add_cell_ctrl(table, 0, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT | LV_TABLE_CELL_CTRL_TEXT_CROP); in test_table_should_keep_not_selected_cell_ctrl()
77 lv_table_clear_cell_ctrl(table, 0, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_should_keep_not_selected_cell_ctrl()
78 has_ctrl = lv_table_has_cell_ctrl(table, 0, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_should_keep_not_selected_cell_ctrl()
81 has_ctrl = lv_table_has_cell_ctrl(table, 0, 0, LV_TABLE_CELL_CTRL_TEXT_CROP); in test_table_should_keep_not_selected_cell_ctrl()
88 TEST_ASSERT_EQUAL_STRING("", lv_table_get_cell_value(table, 0, 0)); in test_table_cell_value_should_return_empty_string_when_cell_is_empty()
93 lv_table_t * table_ptr = (lv_table_t *) table; in test_table_row_height_should_increase_with_multiline_cell_value()
97 lv_table_set_cell_value(table, 0, 0, singleline_value); in test_table_row_height_should_increase_with_multiline_cell_value()
100 lv_table_set_cell_value(table, 0, 0, multiline_value); in test_table_row_height_should_increase_with_multiline_cell_value()
108 lv_table_t * table_ptr = (lv_table_t *) table; in test_table_should_wrap_long_texts()
112 lv_table_set_col_width(table, 0, 50); in test_table_should_wrap_long_texts()
114 lv_table_set_cell_value(table, 0, 0, small_text); in test_table_should_wrap_long_texts()
117 lv_table_set_cell_value(table, 0, 0, long_text); in test_table_should_wrap_long_texts()
154 lv_obj_center(table); in test_table_rendering()
155 lv_obj_add_event_cb(table, draw_part_event_cb, LV_EVENT_DRAW_PART_BEGIN, NULL); in test_table_rendering()
156 lv_obj_set_style_border_side(table, LV_BORDER_SIDE_FULL, LV_PART_ITEMS); in test_table_rendering()
157 lv_obj_set_style_pad_all(table, 10, LV_PART_ITEMS); in test_table_rendering()
158 lv_obj_set_style_border_width(table, 5, LV_PART_ITEMS); in test_table_rendering()
159 lv_table_set_col_cnt(table, 5); in test_table_rendering()
160 lv_table_set_row_cnt(table, 5); in test_table_rendering()
161 lv_table_set_col_width(table, 1, 60); in test_table_rendering()
162 lv_table_set_col_width(table, 2, 100); in test_table_rendering()
164 lv_table_add_cell_ctrl(table, 0, 1, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_rendering()
165 lv_table_set_cell_value(table, 0, 1, "2 cells are merged"); in test_table_rendering()
167 lv_table_add_cell_ctrl(table, 1, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_rendering()
168 lv_table_add_cell_ctrl(table, 1, 1, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_rendering()
169 lv_table_add_cell_ctrl(table, 1, 2, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_rendering()
170 lv_table_add_cell_ctrl(table, 1, 3, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_rendering()
171 lv_table_set_cell_value(table, 1, 0, "5 cells are merged"); in test_table_rendering()
175 lv_table_set_cell_value_fmt(table, 3, i, "%d", i); in test_table_rendering()
178 lv_table_set_cell_value_fmt(table, 2, 3, "Multi\nline text"); in test_table_rendering()
179 lv_table_set_cell_value_fmt(table, 2, 4, "Very long text wrapped automatically"); in test_table_rendering()
181 lv_table_add_cell_ctrl(table, 4, 3, LV_TABLE_CELL_CTRL_TEXT_CROP); in test_table_rendering()
182 lv_table_set_cell_value_fmt(table, 4, 3, "crop crop crop crop crop crop crop crop "); in test_table_rendering()
195 lv_obj_center(table); in test_table_should_reduce_cells()
197 lv_table_set_col_cnt(table, initial_col_num); in test_table_should_reduce_cells()
198 lv_table_set_row_cnt(table, initial_row_num); in test_table_should_reduce_cells()
203 lv_table_set_cell_value(table, row_idx, col_idx, "00"); in test_table_should_reduce_cells()
207 lv_table_set_col_cnt(table, final_col_num); in test_table_should_reduce_cells()
208 lv_table_set_row_cnt(table, final_row_num); in test_table_should_reduce_cells()
212 lv_table_set_cell_value(table, row_idx, col_idx, "00"); in test_table_should_reduce_cells()
225 lv_obj_center(table); in test_table_should_reduce_cells_with_more_than_one_row()
227 lv_table_set_col_cnt(table, initial_col_num); in test_table_should_reduce_cells_with_more_than_one_row()
228 lv_table_set_row_cnt(table, initial_row_num); in test_table_should_reduce_cells_with_more_than_one_row()
233 lv_table_set_cell_value(table, row_idx, col_idx, "00"); in test_table_should_reduce_cells_with_more_than_one_row()
237 lv_table_set_col_cnt(table, final_col_num); in test_table_should_reduce_cells_with_more_than_one_row()
238 lv_table_set_row_cnt(table, final_row_num); in test_table_should_reduce_cells_with_more_than_one_row()
242 lv_table_set_cell_value(table, row_idx, col_idx, "00"); in test_table_should_reduce_cells_with_more_than_one_row()