Lines Matching defs:width
16 static void print_buttons(WINDOW * dialog, int height, int width, int selected)
18 int x = width / 2 - 11;
31 int dialog_inputbox(const char *title, const char *prompt, int height, int width,
48 if (getmaxx(stdscr) <= (width - INPUTBOX_WIDTH_MIN))
52 x = (getmaxx(stdscr) - width) / 2;
55 draw_shadow(stdscr, y, x, height, width);
57 dialog = newwin(height, width, y, x);
60 draw_box(dialog, 0, 0, height, width,
64 for (i = 0; i < width - 2; i++)
69 print_title(dialog, title, width);
72 print_autowrap(dialog, prompt, width - 2, 1, 3);
75 box_width = width - 6;
78 box_x = (width - box_width) / 2;
82 print_buttons(dialog, height, width, 0);
235 print_buttons(dialog, height, width, 1);
239 print_buttons(dialog, height, width, 0);
245 print_buttons(dialog, height, width, 0);
255 print_buttons(dialog, height, width, 0);
259 print_buttons(dialog, height, width, 1);
263 print_buttons(dialog, height, width, 0);