Lines Matching defs:width
155 static void print_buttons(WINDOW * win, int height, int width, int selected)
157 int x = width / 2 - 16;
186 int height, width, menu_height;
193 width = getmaxx(stdscr);
194 if (height < 15 || width < 65)
198 width -= 5;
204 x = (COLS - width) / 2;
207 draw_shadow(stdscr, y, x, height, width);
209 dialog = newwin(height, width, y, x);
212 draw_box(dialog, 0, 0, height, width,
216 for (i = 0; i < width - 2; i++)
222 print_title(dialog, title, width);
225 print_autowrap(dialog, prompt, width - 2, 1, 3);
227 menu_width = width - 6;
229 box_x = (width - menu_width) / 2 - 1;
276 print_buttons(dialog, height, width, 0);
377 print_buttons(dialog, height, width, button);