Searched refs:name_width (Results 1 – 4 of 4) sorted by relevance
| /freebsd-12-stable/contrib/dialog/ |
| D | checklist.c | 200 int use_width, list_width, name_width, text_width; in dlg_checklist() local 309 name_width = 0; in dlg_checklist() 313 name_width = MAX(name_width, dlg_count_columns(items[i].name)); in dlg_checklist() 324 list_width = MIN(all.use_width, name_width); in dlg_checklist() 327 && name_width >= 0 in dlg_checklist() 329 && text_width + name_width > use_width) { in dlg_checklist() 331 if (name_width > need) { in dlg_checklist() 332 int want = (int) (use_width * ((double) name_width) / in dlg_checklist() 333 (text_width + name_width)); in dlg_checklist() 334 name_width = (want > need) ? want : need; in dlg_checklist() [all …]
|
| D | menubox.c | 346 int use_width, name_width, text_width, list_width; in dlg_menu() local 432 name_width = 0; in dlg_menu() 439 name_width = MAX(name_width, dlg_count_columns(items[i].name)); in dlg_menu() 453 list_width = MIN(use_width, name_width); in dlg_menu() 456 && name_width >= 0 in dlg_menu() 458 && text_width + name_width > use_width) { in dlg_menu() 460 if (name_width > need) { in dlg_menu() 462 * ((double) name_width) in dlg_menu() 463 / (text_width + name_width)); in dlg_menu() 464 name_width = (want > need) ? want : need; in dlg_menu() [all …]
|
| D | buildlist.c | 464 int name_width, text_width, full_width, list_width; in dlg_buildlist() local 572 name_width = 0; in dlg_buildlist() 576 name_width = MAX(name_width, dlg_count_columns(items[i].name)); in dlg_buildlist() 587 full_width = MIN(all.use_width, name_width); in dlg_buildlist() 590 && name_width >= 0 in dlg_buildlist() 592 && text_width + name_width > all.use_width) { in dlg_buildlist() 594 if (name_width > need) { in dlg_buildlist() 595 int want = (int) (all.use_width * ((double) name_width) / in dlg_buildlist() 596 (text_width + name_width)); in dlg_buildlist() 597 name_width = (want > need) ? want : need; in dlg_buildlist() [all …]
|
| D | treeview.c | 205 int use_width, name_width, text_width, tree_width; in dlg_treeview() local 309 name_width = 0; in dlg_treeview() 315 name_width = MAX(name_width, dlg_count_columns(items[i].name)); in dlg_treeview() 320 tree_width += name_width; in dlg_treeview() 322 tree_width += (text_width + name_width); in dlg_treeview() 333 : (2 + name_width))) in dlg_treeview()
|