Home
last modified time | relevance | path

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

12

/lvgl-latest/src/widgets/table/
Dlv_table.h71 void lv_table_set_cell_value(lv_obj_t * obj, uint32_t row, uint32_t col, const char * txt);
81 void lv_table_set_cell_value_fmt(lv_obj_t * obj, uint32_t row, uint32_t col, const char * fmt,
113 void lv_table_add_cell_ctrl(lv_obj_t * obj, uint32_t row, uint32_t col, lv_table_cell_ctrl_t ctrl);
122 void lv_table_clear_cell_ctrl(lv_obj_t * obj, uint32_t row, uint32_t col, lv_table_cell_ctrl_t ctrl…
134 void lv_table_set_cell_user_data(lv_obj_t * obj, uint16_t row, uint16_t col, void * user_data);
142 void lv_table_set_selected_cell(lv_obj_t * obj, uint16_t row, uint16_t col);
155 const char * lv_table_get_cell_value(lv_obj_t * obj, uint32_t row, uint32_t col);
187 bool lv_table_has_cell_ctrl(lv_obj_t * obj, uint32_t row, uint32_t col, lv_table_cell_ctrl_t ctrl);
195 void lv_table_get_selected_cell(lv_obj_t * obj, uint32_t * row, uint32_t * col);
203 void * lv_table_get_cell_user_data(lv_obj_t * obj, uint16_t row, uint16_t col);
Dlv_table.c44 static void refr_cell_size(lv_obj_t * obj, uint32_t row, uint32_t col);
45 static lv_result_t get_pressed_cell(lv_obj_t * obj, uint32_t * row, uint32_t * col);
48 static void get_cell_area(lv_obj_t * obj, uint32_t row, uint32_t col, lv_area_t * area);
91 void lv_table_set_cell_value(lv_obj_t * obj, uint32_t row, uint32_t col, const char * txt) in lv_table_set_cell_value() argument
100 if(row >= table->row_cnt) lv_table_set_row_count(obj, row + 1); in lv_table_set_cell_value()
102 uint32_t cell = row * table->col_cnt + col; in lv_table_set_cell_value()
123 refr_cell_size(obj, row, col); in lv_table_set_cell_value()
126 void lv_table_set_cell_value_fmt(lv_obj_t * obj, uint32_t row, uint32_t col, const char * fmt, ...) in lv_table_set_cell_value_fmt() argument
137 if(row >= table->row_cnt) { in lv_table_set_cell_value_fmt()
138 lv_table_set_row_count(obj, row + 1); in lv_table_set_cell_value_fmt()
[all …]
/lvgl-latest/src/others/vg_lite_tvg/
Dvg_lite_matrix.c69 int row, column; in multiply() local
72 for(row = 0; row < 3; row++) { in multiply()
76 temp.m[row][column] = (matrix->m[row][0] * mult->m[0][column]) in multiply()
77 + (matrix->m[row][1] * mult->m[1][column]) in multiply()
78 + (matrix->m[row][2] * mult->m[2][column]); in multiply()
/lvgl-latest/src/layouts/flex/
Dlv_flex.c28 uint8_t row : 1; member
133 f.row = flow & LV_FLEX_COLUMN ? 0 : 1; in flex_update()
141 …int32_t track_gap = !f.row ? lv_obj_get_style_pad_column(cont, LV_PART_MAIN) : lv_obj_get_style_pa… in flex_update()
143 …int32_t item_gap = f.row ? lv_obj_get_style_pad_column(cont, LV_PART_MAIN) : lv_obj_get_style_pad_… in flex_update()
145 …int32_t max_main_size = (f.row ? lv_obj_get_content_width(cont) : lv_obj_get_content_height(cont)); in flex_update()
152 int32_t * cross_pos = (f.row ? &abs_y : &abs_x); in flex_update()
158 if((f.row && h_set == LV_SIZE_CONTENT && cont->h_layout == 0) || in flex_update()
159 (!f.row && w_set == LV_SIZE_CONTENT && cont->w_layout == 0)) { in flex_update()
163 if(rtl && !f.row) { in flex_update()
189 …int32_t max_cross_size = (f.row ? lv_obj_get_content_height(cont) : lv_obj_get_content_width(cont)… in flex_update()
[all …]
/lvgl-latest/tests/src/test_cases/
Dtest_align_flex.c32 lv_obj_t * row = lv_obj_create(lv_screen_active()); in create_row() local
33 lv_obj_set_size(row, LV_PCT(100), LV_PCT(100)); in create_row()
34 lv_obj_set_flex_flow(row, LV_FLEX_FLOW_ROW); in create_row()
35 lv_obj_set_flex_align(row, main_place, LV_FLEX_ALIGN_CENTER, LV_FLEX_ALIGN_CENTER); in create_row()
36 simple_style(row); in create_row()
38 lv_obj_t * child = lv_obj_create(row); in create_row()
43 return row; in create_row()
Dtest_grid_fr.c34 for(int row = 0; row < 5; row++) { in test_grid_fr() local
37 … lv_obj_set_grid_cell(child, LV_GRID_ALIGN_STRETCH, col, 1, LV_GRID_ALIGN_STRETCH, row, 1); in test_grid_fr()
38 …lv_obj_set_style_bg_color(child, lv_palette_main((row + col) % 2 ? LV_PALETTE_GREEN : LV_PALETTE_B… in test_grid_fr()
/lvgl-latest/demos/render/
Dlv_demo_render.c36 static void add_to_cell(lv_obj_t * obj, int32_t col, int32_t row);
38 static lv_obj_t * fill_obj_create(lv_obj_t * parent, int32_t col, int32_t row) in fill_obj_create() argument
56 add_to_cell(obj, col, row); in fill_obj_create()
116 static lv_obj_t * border_obj_create(lv_obj_t * parent, int32_t col, int32_t row) in border_obj_create() argument
124 add_to_cell(obj, col, row); in border_obj_create()
211 static lv_obj_t * box_shadow_obj_create(lv_obj_t * parent, int32_t col, int32_t row) in box_shadow_obj_create() argument
220 add_to_cell(obj, col, row); in box_shadow_obj_create()
277 static lv_obj_t * text_obj_create(lv_obj_t * parent, int32_t col, int32_t row) in text_obj_create() argument
284 add_to_cell(obj, col, row); in text_obj_create()
315 static lv_obj_t * image_obj_create(lv_obj_t * parent, int32_t col, int32_t row, bool recolor) in image_obj_create() argument
[all …]
/lvgl-latest/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_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_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()
Dindex.rst25 Demonstrate column and row gap
/lvgl-latest/examples/widgets/table/
Dlv_example_table_1.c10 uint32_t row = base_dsc->id1; in draw_event_cb() local
14 if(row == 0) { in draw_event_cb()
34 if((row != 0 && row % 2) == 0) { in draw_event_cb()
Dlv_example_table_2.c52 uint32_t row; in change_event_cb() local
53 lv_table_get_selected_cell(obj, &row, &col); in change_event_cb()
54 bool chk = lv_table_has_cell_ctrl(obj, row, 0, LV_TABLE_CELL_CTRL_CUSTOM_1); in change_event_cb()
55 if(chk) lv_table_clear_cell_ctrl(obj, row, 0, LV_TABLE_CELL_CTRL_CUSTOM_1); in change_event_cb()
56 else lv_table_add_cell_ctrl(obj, row, 0, LV_TABLE_CELL_CTRL_CUSTOM_1); in change_event_cb()
/lvgl-latest/tests/src/test_cases/widgets/
Dtest_table.c30 uint16_t row = 0; in test_table_should_return_assigned_cell_value() local
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()
138 uint32_t row = base_dsc->id1; in draw_part_event_cb() local
142 if(row == 0) { in draw_part_event_cb()
162 if((row != 0 && row % 2) == 0) { in draw_part_event_cb()
/lvgl-latest/examples/layouts/flex/
Dindex.rst1 A simple row and a column layout with flexbox
25 Demonstrate column and row gap style properties
/lvgl-latest/src/others/xml/parsers/
Dlv_xml_table_parser.c108 int32_t row = lv_xml_atoi(lv_xml_get_value_of(attrs, "row")); in lv_xml_table_cell_apply() local
115 if(lv_streq("value", name)) lv_table_set_cell_value(table, row, column, value); in lv_xml_table_cell_apply()
126 lv_table_add_cell_ctrl(table, row, column, ctrl); in lv_xml_table_cell_apply()
/lvgl-latest/scripts/
DLVGLImage.py936 for row in rows:
937 A = row[3::4]
943 rows = [[(a >> shift) & mask for a in row[3::4]] for row in rows]
944 for row in png.pack_rows(rows, cf.bpp):
945 rawdata += row
963 for row in rows:
964 R = row[0::4]
965 G = row[1::4]
966 B = row[2::4]
967 A = row[3::4]
[all …]
/lvgl-latest/docs/details/widgets/
Dtable.rst46 :cpp:expr:`lv_table_set_cell_value(table, row, col, "Content")`. The text is
74 :cpp:expr:`lv_table_add_cell_ctrl(table, row, col, LV_TABLE_CELL_CTRL_MERGE_RIGHT)`.
118 :cpp:expr:`lv_table_get_selected_cell(table, &row, &col)` can be used to get the
Dbuttonmatrix.rst54 width calculated automatically. So in the example the first row will
55 have 2 buttons each with 50% width and a second row with 1 button having
66 row with :cpp:expr:`lv_buttonmatrix_set_button_width(btn_matrix, button_id, width)` E.g. in a
/lvgl-latest/docs/details/other-components/
Dgridnav.rst19 Gridnav also works if the children are arranged into a single row or
52 direction, the focus goes to the Widget in the next/previous row (on
53 left/right keys) or first/last row (on up/down keys)
/lvgl-latest/docs/details/base-widget/layouts/
Dflex.rst31 - **main direction**: row or column, the direction in which multiple items are
65 - :cpp:enumerator:`LV_FLEX_FLOW_ROW`: Place the children in a row without wrapping
67 - :cpp:enumerator:`LV_FLEX_FLOW_ROW_WRAP`: Place the children in a row with wrapping
69 - :cpp:enumerator:`LV_FLEX_FLOW_ROW_REVERSE`: Place the children in a row without wrapping but in r…
71 - :cpp:enumerator:`LV_FLEX_FLOW_ROW_WRAP_REVERSE`: Place the children in a row with wrapping but in…
/lvgl-latest/src/draw/vg_lite/
Dlv_vg_lite_utils.c1132 int row, column; in lv_vg_lite_matrix_multiply() local
1136 for(row = 0; row < 3; row++) { in lv_vg_lite_matrix_multiply()
1140 temp.m[row][column] = (m[row][0] * mult->m[0][column]) in lv_vg_lite_matrix_multiply()
1141 + (m[row][1] * mult->m[1][column]) in lv_vg_lite_matrix_multiply()
1142 + (m[row][2] * mult->m[2][column]); in lv_vg_lite_matrix_multiply()
/lvgl-latest/src/widgets/buttonmatrix/
Dlv_buttonmatrix.c132 uint32_t row; in lv_buttonmatrix_set_map() local
133 for(row = 0; row < btnm->row_cnt; row++) { in lv_buttonmatrix_set_map()
148 int32_t row_y1 = stop + (max_h_no_gap * row) / btnm->row_cnt + row * prow; in lv_buttonmatrix_set_map()
149 int32_t row_y2 = stop + (max_h_no_gap * (row + 1)) / btnm->row_cnt + row * prow - 1; in lv_buttonmatrix_set_map()

12