Lines Matching refs:table
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()
92 lv_obj_add_flag(table, LV_OBJ_FLAG_SEND_DRAW_TASK_EVENTS); in lv_example_table_2()