Home
last modified time | relevance | path

Searched refs:tab_id (Results 1 – 3 of 3) sorted by relevance

/lvgl-3.7.0/src/extra/widgets/tabview/
Dlv_tabview.c76 uint32_t tab_id = lv_obj_get_child_cnt(cont); in lv_tabview_add_tab() local
85 new_map = lv_mem_alloc((tab_id + 1) * sizeof(const char *)); in lv_tabview_add_tab()
86 lv_memcpy_small(new_map, old_map, sizeof(const char *) * (tab_id - 1)); in lv_tabview_add_tab()
87 new_map[tab_id - 1] = lv_mem_alloc(strlen(name) + 1); in lv_tabview_add_tab()
88 strcpy((char *)new_map[tab_id - 1], name); in lv_tabview_add_tab()
89 new_map[tab_id] = ""; in lv_tabview_add_tab()
93 new_map = lv_mem_alloc((tab_id * 2) * sizeof(const char *)); in lv_tabview_add_tab()
94 lv_memcpy_small(new_map, old_map, sizeof(const char *) * (tab_id - 1) * 2); in lv_tabview_add_tab()
101 new_map[tab_id * 2 - 3] = "\n"; in lv_tabview_add_tab()
102 new_map[tab_id * 2 - 2] = lv_mem_alloc(strlen(name) + 1); in lv_tabview_add_tab()
[all …]
Dlv_tabview.h45 void lv_tabview_rename_tab(lv_obj_t * obj, uint32_t tab_id, const char * new_name);
/lvgl-3.7.0/docs/widgets/extra/
Dtabview.md33 A tab can be renamed with `lv_tabview_rename_tab(tabview, tab_id, "New Name")`.