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