Lines Matching refs:table
8 static lv_obj_t * table = NULL; variable
13 table = lv_table_create(scr); in setUp()
23 lv_table_set_row_count(table, 0); in test_table_should_set_row_count_to_zero()
25 TEST_ASSERT_EQUAL_UINT32(0, lv_table_get_row_count(table)); in test_table_should_set_row_count_to_zero()
34 lv_table_set_cell_value(table, row, column, value); in test_table_should_return_assigned_cell_value()
36 TEST_ASSERT_EQUAL_STRING(value, lv_table_get_cell_value(table, row, column)); in test_table_should_return_assigned_cell_value()
42 uint16_t original_column_count = lv_table_get_column_count(table); in test_table_should_grow_columns_automatically_when_setting_formatted_cell_value()
46 lv_table_set_cell_value_fmt(table, 0, 1, "LVGL %s", "Rocks!"); in test_table_should_grow_columns_automatically_when_setting_formatted_cell_value()
50 TEST_ASSERT_EQUAL_UINT16(expected_column_count, lv_table_get_column_count(table)); in test_table_should_grow_columns_automatically_when_setting_formatted_cell_value()
57 has_ctrl = lv_table_has_cell_ctrl(table, 0, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_should_identify_cell_with_ctrl()
61 lv_table_add_cell_ctrl(table, 0, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_should_identify_cell_with_ctrl()
62 has_ctrl = lv_table_has_cell_ctrl(table, 0, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_should_identify_cell_with_ctrl()
70 lv_table_add_cell_ctrl(table, 0, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_should_clear_selected_cell_ctrl()
71 has_ctrl = lv_table_has_cell_ctrl(table, 0, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_should_clear_selected_cell_ctrl()
74 lv_table_clear_cell_ctrl(table, 0, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_should_clear_selected_cell_ctrl()
75 has_ctrl = lv_table_has_cell_ctrl(table, 0, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_should_clear_selected_cell_ctrl()
83 …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()
85 lv_table_clear_cell_ctrl(table, 0, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_should_keep_not_selected_cell_ctrl()
86 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()
89 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()
96 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()
101 lv_table_t * table_ptr = (lv_table_t *) table; in test_table_row_height_should_increase_with_multiline_cell_value()
105 lv_table_set_cell_value(table, 0, 0, singleline_value); in test_table_row_height_should_increase_with_multiline_cell_value()
108 lv_table_set_cell_value(table, 0, 0, multiline_value); in test_table_row_height_should_increase_with_multiline_cell_value()
116 lv_table_t * table_ptr = (lv_table_t *) table; in test_table_should_wrap_long_texts()
120 lv_table_set_column_width(table, 0, 50); in test_table_should_wrap_long_texts()
122 lv_table_set_cell_value(table, 0, 0, small_text); in test_table_should_wrap_long_texts()
125 lv_table_set_cell_value(table, 0, 0, long_text); in test_table_should_wrap_long_texts()
174 lv_obj_center(table); in test_table_rendering()
175 lv_obj_add_event_cb(table, draw_part_event_cb, LV_EVENT_DRAW_TASK_ADDED, NULL); in test_table_rendering()
176 lv_obj_add_flag(table, LV_OBJ_FLAG_SEND_DRAW_TASK_EVENTS); in test_table_rendering()
177 lv_obj_set_style_border_side(table, LV_BORDER_SIDE_FULL, LV_PART_ITEMS); in test_table_rendering()
178 lv_obj_set_style_pad_all(table, 10, LV_PART_ITEMS); in test_table_rendering()
179 lv_obj_set_style_border_width(table, 5, LV_PART_ITEMS); in test_table_rendering()
180 lv_table_set_column_count(table, 5); in test_table_rendering()
181 lv_table_set_row_count(table, 5); in test_table_rendering()
182 lv_table_set_column_width(table, 1, 60); in test_table_rendering()
183 lv_table_set_column_width(table, 2, 100); in test_table_rendering()
185 lv_table_add_cell_ctrl(table, 0, 1, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_rendering()
186 lv_table_set_cell_value(table, 0, 1, "2 cells are merged"); in test_table_rendering()
188 lv_table_add_cell_ctrl(table, 1, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_rendering()
189 lv_table_add_cell_ctrl(table, 1, 1, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_rendering()
190 lv_table_add_cell_ctrl(table, 1, 2, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_rendering()
191 lv_table_add_cell_ctrl(table, 1, 3, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in test_table_rendering()
192 lv_table_set_cell_value(table, 1, 0, "5 cells are merged"); in test_table_rendering()
196 lv_table_set_cell_value_fmt(table, 3, i, "%d", i); in test_table_rendering()
199 lv_table_set_cell_value_fmt(table, 2, 3, "Multi\nline text"); in test_table_rendering()
200 lv_table_set_cell_value_fmt(table, 2, 4, "Very long text wrapped automatically"); in test_table_rendering()
202 lv_table_add_cell_ctrl(table, 4, 3, LV_TABLE_CELL_CTRL_TEXT_CROP); in test_table_rendering()
203 lv_table_set_cell_value_fmt(table, 4, 3, "crop crop crop crop crop crop crop crop "); in test_table_rendering()
216 lv_obj_center(table); in test_table_should_reduce_cells()
218 lv_table_set_column_count(table, initial_col_num); in test_table_should_reduce_cells()
219 lv_table_set_row_count(table, initial_row_num); in test_table_should_reduce_cells()
224 lv_table_set_cell_value(table, row_idx, col_idx, "00"); in test_table_should_reduce_cells()
228 lv_table_set_column_count(table, final_col_num); in test_table_should_reduce_cells()
229 lv_table_set_row_count(table, final_row_num); in test_table_should_reduce_cells()
233 lv_table_set_cell_value(table, row_idx, col_idx, "00"); in test_table_should_reduce_cells()
246 lv_obj_center(table); in test_table_should_reduce_cells_with_more_than_one_row()
248 lv_table_set_column_count(table, initial_col_num); in test_table_should_reduce_cells_with_more_than_one_row()
249 lv_table_set_row_count(table, initial_row_num); in test_table_should_reduce_cells_with_more_than_one_row()
254 lv_table_set_cell_value(table, row_idx, col_idx, "00"); in test_table_should_reduce_cells_with_more_than_one_row()
258 lv_table_set_column_count(table, final_col_num); in test_table_should_reduce_cells_with_more_than_one_row()
259 lv_table_set_row_count(table, final_row_num); in test_table_should_reduce_cells_with_more_than_one_row()
263 lv_table_set_cell_value(table, row_idx, col_idx, "00"); in test_table_should_reduce_cells_with_more_than_one_row()
270 lv_table_set_row_count(table, 2); in test_table_should_set_selected_cell()
271 lv_table_set_column_count(table, 2); in test_table_should_set_selected_cell()
273 lv_table_set_selected_cell(table, 1, 1); in test_table_should_set_selected_cell()
278 lv_table_get_selected_cell(table, &selected_row, &selected_column); in test_table_should_set_selected_cell()
286 lv_table_set_row_count(table, 2); in test_table_cell_select_should_not_exceed_table_bounds()
287 lv_table_set_column_count(table, 2); in test_table_cell_select_should_not_exceed_table_bounds()
289 lv_table_set_selected_cell(table, 2, 2); in test_table_cell_select_should_not_exceed_table_bounds()
294 lv_table_get_selected_cell(table, &selected_row, &selected_column); in test_table_cell_select_should_not_exceed_table_bounds()
302 lv_table_set_row_count(table, 0); in test_table_cell_select_should_not_allow_set_on_table_with_no_rows()
303 lv_table_set_column_count(table, 5); in test_table_cell_select_should_not_allow_set_on_table_with_no_rows()
305 lv_table_set_selected_cell(table, 4, 4); in test_table_cell_select_should_not_allow_set_on_table_with_no_rows()
310 lv_table_get_selected_cell(table, &selected_row, &selected_column); in test_table_cell_select_should_not_allow_set_on_table_with_no_rows()