Home
last modified time | relevance | path

Searched refs:table (Results 1 – 25 of 27) sorted by relevance

12

/lvgl-3.7.0/tests/src/test_cases/
Dtest_table.c7 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()
[all …]
/lvgl-3.7.0/src/widgets/
Dlv_table.c91 lv_table_t * table = (lv_table_t *)obj; in lv_table_set_cell_value() local
94 if(col >= table->col_cnt) lv_table_set_col_cnt(obj, col + 1); in lv_table_set_cell_value()
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()
101 if(table->cell_data[cell]) ctrl = table->cell_data[cell]->ctrl; in lv_table_set_cell_value()
107 if(table->cell_data[cell]) user_data = table->cell_data[cell]->user_data; in lv_table_set_cell_value()
112 table->cell_data[cell] = lv_mem_realloc(table->cell_data[cell], to_allocate); in lv_table_set_cell_value()
113 LV_ASSERT_MALLOC(table->cell_data[cell]); in lv_table_set_cell_value()
114 if(table->cell_data[cell] == NULL) return; in lv_table_set_cell_value()
116 copy_cell_txt(table->cell_data[cell], txt); in lv_table_set_cell_value()
[all …]
/lvgl-3.7.0/examples/widgets/table/
Dlv_example_table_1.c34 lv_obj_t * table = lv_table_create(lv_scr_act()); in lv_example_table_1() local
37 lv_table_set_cell_value(table, 0, 0, "Name"); in lv_example_table_1()
38 lv_table_set_cell_value(table, 1, 0, "Apple"); in lv_example_table_1()
39 lv_table_set_cell_value(table, 2, 0, "Banana"); in lv_example_table_1()
40 lv_table_set_cell_value(table, 3, 0, "Lemon"); in lv_example_table_1()
41 lv_table_set_cell_value(table, 4, 0, "Grape"); in lv_example_table_1()
42 lv_table_set_cell_value(table, 5, 0, "Melon"); in lv_example_table_1()
43 lv_table_set_cell_value(table, 6, 0, "Peach"); in lv_example_table_1()
44 lv_table_set_cell_value(table, 7, 0, "Nuts"); in lv_example_table_1()
47 lv_table_set_cell_value(table, 0, 1, "Price"); in lv_example_table_1()
[all …]
Dlv_example_table_1.py25 table = lv.table(lv.scr_act()) variable
28 table.set_cell_value(0, 0, "Name")
29 table.set_cell_value(1, 0, "Apple")
30 table.set_cell_value(2, 0, "Banana")
31 table.set_cell_value(3, 0, "Lemon")
32 table.set_cell_value(4, 0, "Grape")
33 table.set_cell_value(5, 0, "Melon")
34 table.set_cell_value(6, 0, "Peach")
35 table.set_cell_value(7, 0, "Nuts")
38 table.set_cell_value(0, 1, "Price")
[all …]
Dlv_example_table_2.py11 chk = obj.has_cell_ctrl(dsc.id, 0, lv.table.CELL_CTRL.CUSTOM_1)
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)
66 table = lv.table(lv.scr_act()) variable
69 table.set_size(150, 200)
71 table.set_col_width(0, 150)
72 table.set_row_cnt(ITEM_CNT) # Not required but avoids a lot of memory reallocation lv_table_set_se…
73 table.set_col_cnt(1)
[all …]
Dlv_example_table_2.c63 lv_obj_t * table = lv_table_create(lv_scr_act()); in lv_example_table_2() local
66 lv_obj_set_size(table, LV_SIZE_CONTENT, 200); in lv_example_table_2()
68 lv_table_set_col_width(table, 0, 150); in lv_example_table_2()
69 …lv_table_set_row_cnt(table, ITEM_CNT); /*Not required but avoids a lot of memory reallocation lv_t… in lv_example_table_2()
70 lv_table_set_col_cnt(table, 1); in lv_example_table_2()
73 lv_obj_remove_style(table, NULL, LV_PART_ITEMS | LV_STATE_PRESSED); in lv_example_table_2()
77 lv_table_set_cell_value_fmt(table, i, 0, "Item %"LV_PRIu32, i + 1); in lv_example_table_2()
80 lv_obj_align(table, LV_ALIGN_CENTER, 0, -20); in lv_example_table_2()
83 lv_obj_add_event_cb(table, draw_event_cb, LV_EVENT_DRAW_PART_END, NULL); in lv_example_table_2()
84 lv_obj_add_event_cb(table, change_event_cb, LV_EVENT_VALUE_CHANGED, NULL); in lv_example_table_2()
Dindex.rst3 Simple table
6 .. lv_example:: widgets/table/lv_example_table_1
9 Lightweighted list from table
12 .. lv_example:: widgets/table/lv_example_table_2
/lvgl-3.7.0/docs/widgets/core/
Dtable.md12 - `LV_PART_MAIN` The background of the table uses all the typical background style properties.
13 - `LV_PART_ITEMS` The cells of the table also use all the typical background style properties and t…
20 …ells can store only text so numbers need to be converted to text before displaying them in a table.
22 `lv_table_set_cell_value(table, row, col, "Content")`. The text is saved by the table so it can be …
30 …umber of rows and columns use `lv_table_set_row_cnt(table, row_cnt)` and `lv_table_set_col_cnt(tab…
34 The width of the columns can be set with `lv_table_set_col_width(table, col_id, width)`. The overal…
40 Cells can be merged horizontally with `lv_table_add_cell_ctrl(table, row, col, LV_TABLE_CELL_CTRL_M…
43 …ight is set to `LV_SIZE_CONTENT` that size will be used to show the whole table in the respective …
44 E.g. `lv_obj_set_size(table, LV_SIZE_CONTENT, LV_SIZE_CONTENT)` automatically sets the table size t…
46 If the width or height is set to a smaller number than the "intrinsic" size then the table becomes …
[all …]
Dindex.md21 table
/lvgl-3.7.0/src/extra/libs/gif/
Dgifdec.c304 Table *table = lv_mem_alloc(sizeof(*table) + sizeof(Entry) * init_bulk); in new_table() local
305 if (table) { in new_table()
306 table->bulk = init_bulk; in new_table()
307 table->nentries = (1 << key_size) + 2; in new_table()
308 table->entries = (Entry *) &table[1]; in new_table()
310 table->entries[key] = (Entry) {1, 0xFFF, key}; in new_table()
312 return table; in new_table()
322 Table *table = *tablep; in add_entry() local
323 if (table->nentries == table->bulk) { in add_entry()
324 table->bulk *= 2; in add_entry()
[all …]
/lvgl-3.7.0/demos/benchmark/
Dlv_demo_benchmark.c816 lv_obj_t * table = lv_table_create(lv_scr_act()); in generate_report() local
818 lv_table_set_col_cnt(table, 2); in generate_report()
820 lv_table_set_col_width(table, 0, (w * 3) / 4 - 3); in generate_report()
821 lv_table_set_col_width(table, 1, w / 4 - 3); in generate_report()
822 lv_obj_set_width(table, lv_pct(100)); in generate_report()
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()
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()
874 lv_table_set_cell_value(table, row, 0, buf); in generate_report()
[all …]
DREADME.md121 In the end, a table is created to display measured FPS values.
129 In the first section of the table, "Slow but common cases", those cases are displayed which are con…
/lvgl-3.7.0/docs/others/
Dime_pinyin.md71table. You can read [here](https://baike.baidu.com/item/%E6%B1%89%E8%AF%AD%E6%8B%BC%E9%9F%B3%E9%9F…
/lvgl-3.7.0/docs/_static/css/
Dcustom.css1 table, th, td { selector
/lvgl-3.7.0/
DREADME_zh.md55 <table>
93 </table>
DREADME.md53 <table>
91 </table>
DREADME_pt_BR.md51 <table>
106 </table>
/lvgl-3.7.0/docs/overview/
Dscroll.md167 …e establishes the size of an object's content. To understand it better take the example of a table.
169 …f the user sets only 200 px height for the table LVGL will see that the self size is larger and ma…
Ddrawing.md148 When LVGL draws a part of an object (e.g. a slider's indicator, a table's cell or a button matrix's…
160 … // The index of the part. E.g. a button's index on button matrix or table cell index.
Dobject.md191 - `LV_PART_ITEMS` Used if the widget has multiple similar elements (e.g. table cells)
Dstyle.md114 - `LV_PART_ITEMS` Used if the widget has multiple similar elements (e.g. table cells)
/lvgl-3.7.0/src/extra/libs/tiny_ttf/
Dstb_truetype_htcw.h842 STBTT_DEF int stbtt_GetKerningTable(const stbtt_fontinfo * info, stbtt_kerningentry * table, int t…
2576 STBTT_DEF int stbtt_GetKerningTable(const stbtt_fontinfo * info, stbtt_kerningentry * table, int ta… argument
2593 table[k].glyph1 = ttUSHORT(info->data, 18 + (k * 6) + info->kern);
2594 table[k].glyph2 = ttUSHORT(info->data, 20 + (k * 6) + info->kern);
2595 table[k].advance = ttSHORT(info->data, 22 + (k * 6) + info->kern);
2776 stbtt_uint32 table = lookupTable + subtableOffset; local
2777 stbtt_uint16 posFormat = ttUSHORT(data, table);
2778 stbtt_uint16 coverageOffset = ttUSHORT(data, table + 2);
2779 … stbtt_int32 coverageIndex = stbtt__GetCoverageIndex(data, table + coverageOffset, glyph1);
2786 stbtt_uint16 valueFormat1 = ttUSHORT(data, table + 4);
[all …]
/lvgl-3.7.0/docs/layouts/
Dgrid.md8 It can arrange items into a 2D "table" that has rows or columns (tracks). The item can span through…
/lvgl-3.7.0/docs/
DCHANGELOG.md7 - feat(table): add user_data to table cells [`4767`](https://github.com/lvgl/lvgl/pull/4767)
16 - fix(table):fix issue with abnormal string output of 'lv_table_set_cell_value_fmt' [`4804`](https:…
17 - fix(table) user data API functions renamed [`4769`](https://github.com/lvgl/lvgl/pull/4769)
261 - feat(table): scroll to the selected cell with key navigation [`39d03a8`](https://github.com/lvgl/…
440 - fix(style): reset style lookup table after gc sweep/lv_deinit [`3385`](https://github.com/lvgl/lv…
519 - fix(table): invalidate only the changed cell [`306fa19`](https://github.com/lvgl/lvgl/commit/306f…
618 - test(table): replicate issue when reducing table cells [`3121`](https://github.com/lvgl/lvgl/pull…
620 - test(table): add unit tests [`3040`](https://github.com/lvgl/lvgl/pull/3040)
818 - fix(table, chart): fix memory leaks [`8d52de1`](https://github.com/littlevgl/lvgl/commit/8d52de14…
828 - example(table): fix text alignment [`b03dc9c`](https://github.com/littlevgl/lvgl/commit/b03dc9cf8…
[all …]
/lvgl-3.7.0/src/extra/libs/qrcode/
Dqrcodegen.c514 static const int table[] = {1, 0, 3, 2}; in drawFormatBits() local
515 int data = table[(int)ecl] << 3 | (int)mask; // errCorrLvl is uint2, mask is uint3 in drawFormatBits()

12