Home
last modified time | relevance | path

Searched refs:name_width (Results 1 – 4 of 4) sorted by relevance

/freebsd-13.1/contrib/dialog/
H A Dchecklist.c326 name_width = 0; in dlg_checklist()
330 name_width = MAX(name_width, dlg_count_columns(items[i].name)); in dlg_checklist()
341 list_width = MIN(all.use_width, name_width); in dlg_checklist()
344 && name_width >= 0 in dlg_checklist()
346 && text_width + name_width > use_width) { in dlg_checklist()
348 if (name_width > need) { in dlg_checklist()
350 (text_width + name_width)); in dlg_checklist()
351 name_width = (want > need) ? want : need; in dlg_checklist()
353 text_width = use_width - name_width; in dlg_checklist()
355 list_width = (text_width + name_width); in dlg_checklist()
[all …]
H A Dmenubox.c449 name_width = 0; in dlg_menu()
456 name_width = MAX(name_width, dlg_count_columns(items[i].name)); in dlg_menu()
470 list_width = MIN(use_width, name_width); in dlg_menu()
473 && name_width >= 0 in dlg_menu()
477 if (name_width > need) { in dlg_menu()
479 * ((double) name_width) in dlg_menu()
480 / (text_width + name_width)); in dlg_menu()
481 name_width = (want > need) ? want : need; in dlg_menu()
483 text_width = use_width - name_width; in dlg_menu()
485 list_width = (text_width + name_width); in dlg_menu()
[all …]
H A Dbuildlist.c672 name_width = 0; in dlg_buildlist()
676 name_width = MAX(name_width, dlg_count_columns(items[i].name)); in dlg_buildlist()
687 full_width = MIN(all.use_width, name_width); in dlg_buildlist()
690 && name_width >= 0 in dlg_buildlist()
692 && text_width + name_width > all.use_width) { in dlg_buildlist()
694 if (name_width > need) { in dlg_buildlist()
696 (text_width + name_width)); in dlg_buildlist()
697 name_width = (want > need) ? want : need; in dlg_buildlist()
699 text_width = all.use_width - name_width; in dlg_buildlist()
701 full_width = text_width + name_width; in dlg_buildlist()
[all …]
H A Dtreeview.c206 int use_width, name_width, text_width, tree_width; in dlg_treeview() local
312 name_width = 0; in dlg_treeview()
318 name_width = MAX(name_width, dlg_count_columns(items[i].name)); in dlg_treeview()
323 tree_width += name_width; in dlg_treeview()
325 tree_width += (text_width + name_width); in dlg_treeview()
336 : (2 + name_width))) in dlg_treeview()