Lines Matching refs:width
229 void attr_clear(WINDOW * win, int height, int width, chtype attr) in attr_clear() argument
236 for (j = 0; j < width; j++) in attr_clear()
304 int height, width; in init_dialog() local
311 getmaxyx(stdscr, height, width); in init_dialog()
312 if (height < WINDOW_HEIGTH_MIN || width < WINDOW_WIDTH_MIN) { in init_dialog()
352 void print_title(WINDOW *dialog, const char *title, int width) in print_title() argument
355 int tlen = MIN(width - 2, strlen(title)); in print_title()
357 mvwaddch(dialog, 0, (width - tlen) / 2 - 1, ' '); in print_title()
358 mvwaddnstr(dialog, 0, (width - tlen)/2, title, tlen); in print_title()
369 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x) in print_autowrap() argument
379 if (prompt_len <= width - x * 2) { /* If prompt is short */ in print_autowrap()
380 wmove(win, y, (width - prompt_len) / 2); in print_autowrap()
398 room = width - cur_x; in print_autowrap()
464 draw_box(WINDOW * win, int y, int x, int height, int width, in draw_box() argument
472 for (j = 0; j < width; j++) in draw_box()
477 else if (!i && j == width - 1) in draw_box()
479 else if (i == height - 1 && j == width - 1) in draw_box()
487 else if (j == width - 1) in draw_box()
498 void draw_shadow(WINDOW * win, int y, int x, int height, int width) in draw_shadow() argument
505 for (i = 0; i < width; i++) in draw_shadow()
508 wmove(win, i, x + width); in draw_shadow()