/lvgl-latest/tests/src/test_cases/widgets/ |
D | test_table.c | 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() [all …]
|
/lvgl-latest/src/widgets/table/ |
D | lv_table.c | 96 lv_table_t * table = (lv_table_t *)obj; in lv_table_set_cell_value() local 99 if(col >= table->col_cnt) lv_table_set_column_count(obj, col + 1); in lv_table_set_cell_value() 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() 106 if(table->cell_data[cell]) ctrl = table->cell_data[cell]->ctrl; in lv_table_set_cell_value() 111 if(table->cell_data[cell]) user_data = table->cell_data[cell]->user_data; in lv_table_set_cell_value() 115 table->cell_data[cell] = lv_realloc(table->cell_data[cell], to_allocate); in lv_table_set_cell_value() 116 LV_ASSERT_MALLOC(table->cell_data[cell]); in lv_table_set_cell_value() 117 if(table->cell_data[cell] == NULL) return; in lv_table_set_cell_value() 119 copy_cell_txt(table->cell_data[cell], txt); in lv_table_set_cell_value() [all …]
|
/lvgl-latest/examples/widgets/table/ |
D | lv_example_table_1.c | 46 lv_obj_t * table = lv_table_create(lv_screen_active()); in lv_example_table_1() local 49 lv_table_set_cell_value(table, 0, 0, "Name"); in lv_example_table_1() 50 lv_table_set_cell_value(table, 1, 0, "Apple"); in lv_example_table_1() 51 lv_table_set_cell_value(table, 2, 0, "Banana"); in lv_example_table_1() 52 lv_table_set_cell_value(table, 3, 0, "Lemon"); in lv_example_table_1() 53 lv_table_set_cell_value(table, 4, 0, "Grape"); in lv_example_table_1() 54 lv_table_set_cell_value(table, 5, 0, "Melon"); in lv_example_table_1() 55 lv_table_set_cell_value(table, 6, 0, "Peach"); in lv_example_table_1() 56 lv_table_set_cell_value(table, 7, 0, "Nuts"); in lv_example_table_1() 59 lv_table_set_cell_value(table, 0, 1, "Price"); in lv_example_table_1() [all …]
|
D | lv_example_table_2.c | 70 lv_obj_t * table = lv_table_create(lv_screen_active()); in lv_example_table_2() local 73 lv_obj_set_size(table, LV_SIZE_CONTENT, 200); in lv_example_table_2() 75 lv_table_set_column_width(table, 0, 150); in lv_example_table_2() 76 …lv_table_set_row_count(table, ITEM_CNT); /*Not required but avoids a lot of memory reallocation lv… in lv_example_table_2() 77 lv_table_set_column_count(table, 1); in lv_example_table_2() 80 lv_obj_remove_style(table, NULL, LV_PART_ITEMS | LV_STATE_PRESSED); in lv_example_table_2() 84 lv_table_set_cell_value_fmt(table, i, 0, "Item %"LV_PRIu32, i + 1); in lv_example_table_2() 87 lv_obj_align(table, LV_ALIGN_CENTER, 0, -20); in lv_example_table_2() 90 lv_obj_add_event_cb(table, draw_event_cb, LV_EVENT_DRAW_TASK_ADDED, NULL); in lv_example_table_2() 91 lv_obj_add_event_cb(table, change_event_cb, LV_EVENT_VALUE_CHANGED, NULL); in lv_example_table_2() [all …]
|
D | index.rst | 3 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-latest/tests/src/test_cases/xml/ |
D | test_xml_table.c | 27 lv_obj_t * table = lv_xml_create(scr, "lv_table", table_attrs); in test_xml_table_with_attrs() local 28 lv_obj_center(table); in test_xml_table_with_attrs() 35 lv_xml_create(table, "lv_table-column", column_1_attrs); in test_xml_table_with_attrs() 43 lv_xml_create(table, "lv_table-cell", cell_1_2_attrs); in test_xml_table_with_attrs() 54 lv_xml_create(table, "lv_table-cell", cell_2_0_attrs); in test_xml_table_with_attrs() 63 lv_xml_create(table, "lv_table-cell", cell_3_0_attrs); in test_xml_table_with_attrs()
|
/lvgl-latest/src/libs/gif/ |
D | gifdec.c | 487 Table * table = lv_malloc(sizeof(*table) + sizeof(Entry) * init_bulk); in new_table() local 488 if(table) { in new_table() 489 table->bulk = init_bulk; in new_table() 490 table->nentries = (1 << key_size) + 2; in new_table() 491 table->entries = (Entry *) &table[1]; in new_table() 493 table->entries[key] = (Entry) { in new_table() 497 return table; in new_table() 507 Table * table = *tablep; in add_entry() local 508 if(table->nentries == table->bulk) { in add_entry() 509 table->bulk *= 2; in add_entry() [all …]
|
/lvgl-latest/demos/benchmark/ |
D | lv_demo_benchmark.c | 635 lv_obj_t * table = lv_table_create(lv_screen_active()); in summary_create() local 636 lv_obj_set_width(table, lv_pct(100)); in summary_create() 637 lv_obj_set_style_max_height(table, lv_pct(100), 0); in summary_create() 638 lv_obj_add_flag(table, LV_OBJ_FLAG_SEND_DRAW_TASK_EVENTS); in summary_create() 639 lv_obj_set_style_text_color(table, lv_palette_darken(LV_PALETTE_BLUE_GREY, 2), LV_PART_ITEMS); in summary_create() 640 lv_obj_set_style_border_color(table, lv_palette_darken(LV_PALETTE_BLUE_GREY, 2), LV_PART_ITEMS); in summary_create() 641 lv_obj_add_event_cb(table, table_draw_task_event_cb, LV_EVENT_DRAW_TASK_ADDED, NULL); in summary_create() 643 lv_table_set_cell_value(table, 0, 0, "Name"); in summary_create() 644 lv_table_set_cell_value(table, 0, 1, "Avg. CPU"); in summary_create() 645 lv_table_set_cell_value(table, 0, 2, "Avg. FPS"); in summary_create() [all …]
|
/lvgl-latest/src/others/xml/parsers/ |
D | lv_xml_table_parser.c | 83 lv_obj_t * table = lv_xml_state_get_parent(state); in lv_xml_table_column_apply() local 90 if(lv_streq("width", name)) lv_table_set_column_width(table, column, lv_xml_atoi(value)); in lv_xml_table_column_apply() 107 lv_obj_t * table = lv_xml_state_get_parent(state); 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/docs/details/widgets/ |
D | table.rst | 46 :cpp:expr:`lv_table_set_cell_value(table, row, col, "Content")`. The text is 57 :cpp:expr:`lv_table_set_row_count(table, row_cnt)` and 58 :cpp:expr:`lv_table_set_column_count(table, col_cnt)`. 64 :cpp:expr:`lv_table_set_column_width(table, col_id, width)`. The overall width of 74 :cpp:expr:`lv_table_add_cell_ctrl(table, row, col, LV_TABLE_CELL_CTRL_MERGE_RIGHT)`. 82 :cpp:expr:`lv_obj_set_size(table, LV_SIZE_CONTENT, LV_SIZE_CONTENT)` 118 :cpp:expr:`lv_table_get_selected_cell(table, &row, &col)` can be used to get the 133 .. include:: ../../examples/widgets/table/index.rst
|
D | index.rst | 37 table
|
/lvgl-latest/src/libs/expat/ |
D | xmlparse.c | 554 static NAMED *lookup(XML_Parser parser, HASH_TABLE *table, KEY name, 556 static void FASTCALL hashTableInit(HASH_TABLE *table, 558 static void FASTCALL hashTableClear(HASH_TABLE *table); 559 static void FASTCALL hashTableDestroy(HASH_TABLE *table); 561 const HASH_TABLE *table); 7187 lookup(XML_Parser parser, HASH_TABLE *table, KEY name, size_t createSize) { in lookup() argument 7189 if (table->size == 0) { in lookup() 7193 table->power = INIT_POWER; in lookup() 7195 table->size = (size_t)1 << INIT_POWER; in lookup() 7196 tsize = table->size * sizeof(NAMED *); in lookup() [all …]
|
D | xmltok.h | 305 ENCODING *XmlInitUnknownEncoding(void *mem, int *table, CONVERTER convert, 318 ENCODING *XmlInitUnknownEncodingNS(void *mem, int *table, CONVERTER convert,
|
D | xmltok.c | 1404 XmlInitUnknownEncoding(void *mem, int *table, CONVERTER convert, in XmlInitUnknownEncoding() argument 1411 && latin1_encoding.type[i] != BT_NONXML && table[i] != i) in XmlInitUnknownEncoding() 1414 int c = table[i]; in XmlInitUnknownEncoding() 1667 XmlInitUnknownEncodingNS(void *mem, int *table, CONVERTER convert, in XmlInitUnknownEncodingNS() argument 1669 ENCODING *enc = XmlInitUnknownEncoding(mem, table, convert, userData); in XmlInitUnknownEncodingNS()
|
/lvgl-latest/docs/details/other-components/ |
D | ime_pinyin.rst | 62 syllable table, you can read 64 to learn about the Hanyu Pinyin syllables and the syllable table.
|
D | obj_property.rst | 272 local data type (e.g. dict, table, etc.) to a C struct before passing it to the
|
/lvgl-latest/docs/details/integration/chip/ |
D | espressif.rst | 113 - Modifying the partition table 118 .. csv-table:: Partition Table 129 via ``menuconfig`` (``Partition Table → Partition Table → Custom partition table CSV``).
|
D | renesas.rst | 40 .. list-table::
|
/lvgl-latest/env_support/qnx/ |
D | common.mk | 92 $(SRC_ROOT)/widgets/table \
|
/lvgl-latest/src/libs/tiny_ttf/ |
D | stb_truetype_htcw.h | 842 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-latest/docs/_static/css/ |
D | custom.css | 1 table, th, td { selector
|
/lvgl-latest/docs/details/base-widget/ |
D | scroll.rst | 287 understand it better take the example of a table. Let's say it has 10 290 200 px height for the table LVGL will see that the self size is larger 291 and make the table scrollable.
|
/lvgl-latest/env_support/pikascript/ |
D | pika_lvgl.pyi | 254 class table(lv_obj):
|
/lvgl-latest/src/libs/qrcode/ |
D | qrcodegen.c | 532 static const int table[] = {1, 0, 3, 2}; in drawFormatBits() local 533 int data = table[(int)ecl] << 3 | (int)mask; // errCorrLvl is uint2, mask is uint3 in drawFormatBits()
|
/lvgl-latest/docs/details/base-widget/layouts/ |
D | grid.rst | 14 It can arrange items (child Widgets) into a 2D "table" that has rows and columns
|