Lines Matching refs:width
242 void attr_clear(WINDOW * win, int height, int width, chtype attr) in attr_clear() argument
249 for (j = 0; j < width; j++) in attr_clear()
317 int height, width; in init_dialog() local
324 getmaxyx(stdscr, height, width); in init_dialog()
325 if (height < WINDOW_HEIGTH_MIN || width < WINDOW_WIDTH_MIN) { in init_dialog()
365 void print_title(WINDOW *dialog, const char *title, int width) in print_title() argument
368 int tlen = MIN(width - 2, strlen(title)); in print_title()
370 mvwaddch(dialog, 0, (width - tlen) / 2 - 1, ' '); in print_title()
371 mvwaddnstr(dialog, 0, (width - tlen)/2, title, tlen); in print_title()
382 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x) in print_autowrap() argument
392 if (prompt_len <= width - x * 2) { /* If prompt is short */ in print_autowrap()
393 wmove(win, y, (width - prompt_len) / 2); in print_autowrap()
411 room = width - cur_x; in print_autowrap()
477 draw_box(WINDOW * win, int y, int x, int height, int width, in draw_box() argument
485 for (j = 0; j < width; j++) in draw_box()
490 else if (!i && j == width - 1) in draw_box()
492 else if (i == height - 1 && j == width - 1) in draw_box()
500 else if (j == width - 1) in draw_box()
511 void draw_shadow(WINDOW * win, int y, int x, int height, int width) in draw_shadow() argument
518 for (i = 0; i < width; i++) in draw_shadow()
521 wmove(win, i, x + width); in draw_shadow()