Lines Matching defs:width
14 static void print_buttons(WINDOW * dialog, int height, int width, int selected)
16 int x = width / 2 - 10;
29 int dialog_yesno(const char *title, const char *prompt, int height, int width)
37 if (getmaxx(stdscr) < (width + YESNO_WIDTH_MIN))
41 x = (getmaxx(stdscr) - width) / 2;
44 draw_shadow(stdscr, y, x, height, width);
46 dialog = newwin(height, width, y, x);
49 draw_box(dialog, 0, 0, height, width,
53 for (i = 0; i < width - 2; i++)
58 print_title(dialog, title, width);
61 print_autowrap(dialog, prompt, width - 2, 1, 3);
63 print_buttons(dialog, height, width, 0);
82 print_buttons(dialog, height, width, button);