Lines Matching defs:height
29 int height, int width, int yesdefault);
35 dialog_yesno(unsigned char *title, unsigned char *prompt, int height, int width)
37 return dialog_yesno_proc(title, prompt, height, width, TRUE);
44 dialog_noyes(unsigned char *title, unsigned char *prompt, int height, int width)
46 return dialog_yesno_proc(title, prompt, height, width, FALSE);
50 dialog_yesno_proc(unsigned char *title, unsigned char *prompt, int height, int width, int yesdefault)
60 if (height < 0)
61 height = strheight(prompt)+4;
71 if (height > LINES)
72 height = LINES;
75 y = DialogY ? DialogY : (LINES - height)/2;
79 draw_shadow(stdscr, y, x, height, width);
81 dialog = newwin(height, width, y, x);
84 fprintf(stderr, "\nnewwin(%d,%d,%d,%d) failed, maybe wrong dims\n", height,width,y,x);
89 draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr);
91 wmove(dialog, height-3, 0);
97 wmove(dialog, height-2, 1);
110 print_autowrap(dialog, prompt, height-1, width-2, width, 1, 2, TRUE, FALSE);
112 display_helpline(dialog, height-1, width);
115 y = height-2;