Lines Matching refs:menu_width
61 static int menu_width, item_x; variable
70 char *menu_item = malloc(menu_width + 1); in do_print_item()
72 strncpy(menu_item, item, menu_width - item_x); in do_print_item()
73 menu_item[menu_width - item_x] = '\0'; in do_print_item()
82 for (i = 0; i < menu_width; i++) in do_print_item()
227 menu_width = width - 6; in dialog_menu()
229 box_x = (width - menu_width) / 2 - 1; in dialog_menu()
232 menu = subwin(dialog, menu_height, menu_width, in dialog_menu()
237 draw_box(dialog, box_y, box_x, menu_height + 2, menu_width + 2, in dialog_menu()
240 if (menu_width >= 80) in dialog_menu()
241 item_x = (menu_width - 70) / 2; in dialog_menu()