Lines Matching defs:width
27 static void print_buttons(WINDOW * dialog, int height, int width, int selected)
29 int x = width / 2 - 10;
42 int dialog_yesno(const char *title, const char *prompt, int height, int width)
50 if (getmaxx(stdscr) < (width + 4))
54 x = (COLS - width) / 2;
57 draw_shadow(stdscr, y, x, height, width);
59 dialog = newwin(height, width, y, x);
62 draw_box(dialog, 0, 0, height, width,
66 for (i = 0; i < width - 2; i++)
71 print_title(dialog, title, width);
74 print_autowrap(dialog, prompt, width - 2, 1, 3);
76 print_buttons(dialog, height, width, 0);
95 print_buttons(dialog, height, width, button);