Home
last modified time | relevance | path

Searched refs:row (Results 1 – 25 of 35) sorted by relevance

12

/lvgl-3.7.0/src/widgets/
Dlv_table.c40 static void refr_cell_size(lv_obj_t * obj, uint32_t row, uint32_t col);
41 static lv_res_t get_pressed_cell(lv_obj_t * obj, uint16_t * row, uint16_t * col);
44 static void get_cell_area(lv_obj_t * obj, uint16_t row, uint16_t col, lv_area_t * area);
86 void lv_table_set_cell_value(lv_obj_t * obj, uint16_t row, uint16_t col, const char * txt) in lv_table_set_cell_value() argument
95 if(row >= table->row_cnt) lv_table_set_row_cnt(obj, row + 1); in lv_table_set_cell_value()
97 uint32_t cell = row * table->col_cnt + col; in lv_table_set_cell_value()
122 refr_cell_size(obj, row, col); in lv_table_set_cell_value()
125 void lv_table_set_cell_value_fmt(lv_obj_t * obj, uint16_t row, uint16_t col, const char * fmt, ...) in lv_table_set_cell_value_fmt() argument
136 if(row >= table->row_cnt) { in lv_table_set_cell_value_fmt()
137 lv_table_set_row_cnt(obj, row + 1); in lv_table_set_cell_value_fmt()
[all …]
Dlv_table.h103 void lv_table_set_cell_value(lv_obj_t * obj, uint16_t row, uint16_t col, const char * txt);
113 void lv_table_set_cell_value_fmt(lv_obj_t * obj, uint16_t row, uint16_t col, const char * fmt, ...);
144 void lv_table_add_cell_ctrl(lv_obj_t * obj, uint16_t row, uint16_t col, lv_table_cell_ctrl_t ctrl);
153 void lv_table_clear_cell_ctrl(lv_obj_t * obj, uint16_t row, uint16_t col, lv_table_cell_ctrl_t ctrl…
163 void lv_table_set_cell_user_data(lv_obj_t * obj, uint16_t row, uint16_t col, void * user_data);
177 const char * lv_table_get_cell_value(lv_obj_t * obj, uint16_t row, uint16_t col);
209 bool lv_table_has_cell_ctrl(lv_obj_t * obj, uint16_t row, uint16_t col, lv_table_cell_ctrl_t ctrl);
217 void lv_table_get_selected_cell(lv_obj_t * obj, uint16_t * row, uint16_t * col);
226 void * lv_table_get_cell_user_data(lv_obj_t * obj, uint16_t row, uint16_t col);
/lvgl-3.7.0/src/extra/layouts/flex/
Dlv_flex.c24 uint8_t row : 1; member
213 f.row = flow & _LV_FLEX_COLUMN ? 0 : 1; in flex_update()
221 …lv_coord_t track_gap = !f.row ? lv_obj_get_style_pad_column(cont, LV_PART_MAIN) : lv_obj_get_style… in flex_update()
223 …lv_coord_t item_gap = f.row ? lv_obj_get_style_pad_column(cont, LV_PART_MAIN) : lv_obj_get_style_p… in flex_update()
225 …lv_coord_t max_main_size = (f.row ? lv_obj_get_content_width(cont) : lv_obj_get_content_height(con… in flex_update()
233 lv_coord_t * cross_pos = (f.row ? &abs_y : &abs_x); in flex_update()
239 if((f.row && h_set == LV_SIZE_CONTENT && cont->h_layout == 0) || in flex_update()
240 (!f.row && w_set == LV_SIZE_CONTENT && cont->w_layout == 0)) { in flex_update()
244 if(rtl && !f.row) { in flex_update()
270 …lv_coord_t max_cross_size = (f.row ? lv_obj_get_content_height(cont) : lv_obj_get_content_width(co… in flex_update()
[all …]
/lvgl-3.7.0/examples/widgets/table/
Dlv_example_table_1.c10 uint32_t row = dsc->id / lv_table_get_col_cnt(obj); in draw_part_event_cb() local
11 uint32_t col = dsc->id - row * lv_table_get_col_cnt(obj); in draw_part_event_cb()
14 if(row == 0) { in draw_part_event_cb()
25 if((row != 0 && row % 2) == 0) { in draw_part_event_cb()
Dlv_example_table_1.py6 row = dsc.id // obj.get_col_cnt()
7 col = dsc.id - row * obj.get_col_cnt()
10 if row == 0:
20 if row != 0 and (row % 2) == 0:
Dlv_example_table_2.c45 uint16_t row; in change_event_cb() local
46 lv_table_get_selected_cell(obj, &row, &col); in change_event_cb()
47 bool chk = lv_table_has_cell_ctrl(obj, row, 0, LV_TABLE_CELL_CTRL_CUSTOM_1); in change_event_cb()
48 if(chk) lv_table_clear_cell_ctrl(obj, row, 0, LV_TABLE_CELL_CTRL_CUSTOM_1); in change_event_cb()
49 else lv_table_add_cell_ctrl(obj, row, 0, LV_TABLE_CELL_CTRL_CUSTOM_1); in change_event_cb()
Dlv_example_table_2.py44 row = lv.C_Pointer()
46 table.get_selected_cell(row, col)
49 chk = table.has_cell_ctrl(row.uint_val, 0, lv.table.CELL_CTRL.CUSTOM_1)
51 table.clear_cell_ctrl(row.uint_val, 0, lv.table.CELL_CTRL.CUSTOM_1)
53 table.add_cell_ctrl(row.uint_val, 0, lv.table.CELL_CTRL.CUSTOM_1)
/lvgl-3.7.0/examples/layouts/grid/
Dlv_example_grid_1.c26 uint8_t row = i / 3; in lv_example_grid_1() local
32 LV_GRID_ALIGN_STRETCH, row, 1); in lv_example_grid_1()
35 lv_label_set_text_fmt(label, "c%d, r%d", col, row); in lv_example_grid_1()
Dlv_example_grid_3.c30 uint8_t row = i / 3; in lv_example_grid_3() local
36 LV_GRID_ALIGN_STRETCH, row, 1); in lv_example_grid_3()
39 lv_label_set_text_fmt(label, "%d,%d", col, row); in lv_example_grid_3()
Dlv_example_grid_3.py25 row = i // 3 variable
31 lv.GRID_ALIGN.STRETCH, row, 1)
34 label.set_text("%d,%d"%(col, row))
Dlv_example_grid_4.c26 uint8_t row = i / 3; in lv_example_grid_4() local
32 LV_GRID_ALIGN_STRETCH, row, 1); in lv_example_grid_4()
35 lv_label_set_text_fmt(label, "%d,%d", col, row); in lv_example_grid_4()
Dlv_example_grid_6.c25 uint8_t row = i / 3; in lv_example_grid_6() local
31 LV_GRID_ALIGN_STRETCH, row, 1); in lv_example_grid_6()
34 lv_label_set_text_fmt(label, "%d,%d", col, row); in lv_example_grid_6()
Dlv_example_grid_6.py16 row = i // 3 variable
22 lv.GRID_ALIGN.STRETCH, row, 1)
25 label.set_text("{:d},{:d}".format(col, row))
Dlv_example_grid_1.py18 row = i // 3 variable
24 lv.GRID_ALIGN.STRETCH, row, 1)
27 label.set_text("c" +str(col) + "r" +str(row))
Dlv_example_grid_4.py21 row = i // 3 variable
27 lv.GRID_ALIGN.STRETCH, row, 1)
30 label.set_text("{:d}{:d}".format(col, row))
Dlv_example_grid_5.c35 uint8_t row = i / 3; in lv_example_grid_5() local
39 LV_GRID_ALIGN_STRETCH, row, 1); in lv_example_grid_5()
41 lv_label_set_text_fmt(label, "%d,%d", col, row); in lv_example_grid_5()
Dlv_example_grid_5.py23 row = i // 3 variable
27 lv.GRID_ALIGN.STRETCH, row, 1)
29 label.set_text("{:d},{:d}".format(col, row))
/lvgl-3.7.0/tests/src/test_cases/
Dtest_table.c22 uint16_t row = 0; in test_table_should_return_assigned_cell_value() local
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()
130 uint32_t row = dsc->id / lv_table_get_col_cnt(obj); in draw_part_event_cb() local
131 uint32_t col = dsc->id - row * lv_table_get_col_cnt(obj); in draw_part_event_cb()
134 if(row == 0) { in draw_part_event_cb()
145 if(row != 0 && (row % 2 == 0)) { in draw_part_event_cb()
/lvgl-3.7.0/demos/benchmark/
Dlv_demo_benchmark.c842 uint16_t row = 0; in generate_report() local
843 lv_table_add_cell_ctrl(table, row, 0, LV_TABLE_CELL_CTRL_MERGE_RIGHT); in generate_report()
844 lv_table_set_cell_value(table, row, 0, "Slow but common cases"); in generate_report()
854 row++; in generate_report()
859 lv_table_set_cell_value(table, row, 0, scenes[i].name); in generate_report()
862 lv_table_set_cell_value(table, row, 1, buf); in generate_report()
869 row++; in generate_report()
874 lv_table_set_cell_value(table, row, 0, buf); in generate_report()
879 lv_table_set_cell_value(table, row, 1, buf); in generate_report()
885 row++; in generate_report()
[all …]
/lvgl-3.7.0/examples/layouts/flex/
Dindex.rst1 A simple row and a column layout with flexbox
25 Demonstrate column and row gap style properties
/lvgl-3.7.0/docs/widgets/core/
Dtable.md22 `lv_table_set_cell_value(table, row, col, "Content")`. The text is saved by the table so it can be …
40 Cells can be merged horizontally with `lv_table_add_cell_ctrl(table, row, col, LV_TABLE_CELL_CTRL_M…
56 - `id`: current row × col count + current column
69 `lv_table_get_selected_cell(table, &row, &col)` can be used to get the currently selected cell. Row…
/lvgl-3.7.0/src/draw/sw/
Dlv_draw_sw_letter.c235 int32_t col, row; in draw_letter_normal() local
284 for(row = row_start ; row < row_end; row++) { in draw_letter_normal()
386 int32_t col, row; in draw_letter_subpx() local
453 for(row = row_start ; row < row_end; row++) { in draw_letter_subpx()
/lvgl-3.7.0/src/draw/
Dlv_draw_img.c323 int32_t row; local
325 for(row = mask_com.y1; row <= mask_com.y2; row++) {
/lvgl-3.7.0/src/core/
Dlv_refr.c663 lv_coord_t row; in refr_area() local
666 for(row = area_p->y1; row + max_row - 1 <= y2; row += max_row) { in refr_area()
670 sub_area.y1 = row; in refr_area()
671 sub_area.y2 = row + max_row - 1; in refr_area()
686 sub_area.y1 = row; in refr_area()
1209 lv_coord_t row = 0; in draw_buf_rotate() local
1210 while(row < area_h) { in draw_buf_rotate()
1211 lv_coord_t height = LV_MIN(max_row, area_h - row); in draw_buf_rotate()
1213 if((row == 0) && (area_h >= area_w)) { in draw_buf_rotate()
1232 area->x1 = init_y_off + row; in draw_buf_rotate()
[all …]
/lvgl-3.7.0/docs/others/
Dgridnav.md11 Gridnav also works if the children are arranged into a single row or column.
29 the focus goes to the object in the next/previous row (on left/right keys) or first/last row (on up…

12