Lines Matching refs:width
239 void attr_clear(WINDOW * win, int height, int width, chtype attr) in attr_clear() argument
246 for (j = 0; j < width; j++) in attr_clear()
273 int height, width; in init_dialog() local
276 getmaxyx(stdscr, height, width); in init_dialog()
277 if (height < 19 || width < 80) { in init_dialog()
312 void print_title(WINDOW *dialog, const char *title, int width) in print_title() argument
315 int tlen = MIN(width - 2, strlen(title)); in print_title()
317 mvwaddch(dialog, 0, (width - tlen) / 2 - 1, ' '); in print_title()
318 mvwaddnstr(dialog, 0, (width - tlen)/2, title, tlen); in print_title()
329 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x) in print_autowrap() argument
347 if (prompt_len <= width - x * 2) { /* If prompt is short */ in print_autowrap()
348 wmove(win, y, (width - prompt_len) / 2); in print_autowrap()
363 room = width - cur_x; in print_autowrap()
421 draw_box(WINDOW * win, int y, int x, int height, int width, in draw_box() argument
429 for (j = 0; j < width; j++) in draw_box()
434 else if (!i && j == width - 1) in draw_box()
436 else if (i == height - 1 && j == width - 1) in draw_box()
444 else if (j == width - 1) in draw_box()
455 void draw_shadow(WINDOW * win, int y, int x, int height, int width) in draw_shadow() argument
462 for (i = 0; i < width; i++) in draw_shadow()
465 wmove(win, i, x + width); in draw_shadow()