Lines Matching refs:width
29 dialog_msgbox (const char *title, const char *prompt, int height, int width, in dialog_msgbox() argument
36 x = (COLS - width) / 2; in dialog_msgbox()
39 draw_shadow (stdscr, y, x, height, width); in dialog_msgbox()
41 dialog = newwin (height, width, y, x); in dialog_msgbox()
44 draw_box (dialog, 0, 0, height, width, dialog_attr, border_attr); in dialog_msgbox()
46 if (title != NULL && strlen(title) >= width-2 ) { in dialog_msgbox()
48 char * title2 = malloc(width-2+1); in dialog_msgbox()
49 memcpy( title2, title, width-2 ); in dialog_msgbox()
50 title2[width-2] = '\0'; in dialog_msgbox()
56 mvwaddch (dialog, 0, (width - strlen(title))/2 - 1, ' '); in dialog_msgbox()
61 print_autowrap (dialog, prompt, width - 2, 1, 2); in dialog_msgbox()
66 for (i = 0; i < width - 2; i++) in dialog_msgbox()
72 height - 2, width / 2 - 4, TRUE); in dialog_msgbox()