Lines Matching defs:height

30 static void	print_page(WINDOW *win, int height, int width, unsigned char *buf, int startline, int hscroll);
38 int dialog_msgbox(unsigned char *title, unsigned char *prompt, int height, int width, int pause)
43 if (height < 0)
44 height = strheight(prompt)+2+2*(!!pause);
55 if (height > LINES)
56 height = LINES;
59 y = DialogY ? DialogY : (LINES - height)/2;
63 draw_shadow(stdscr, y, x, height, width);
65 dialog = newwin(height, width, y, x);
68 fprintf(stderr, "\nnewwin(%d,%d,%d,%d) failed, maybe wrong dims\n", height,width,y,x);
73 draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr);
84 print_autowrap(dialog, prompt, height-1, width-2, width, 1, 2, TRUE, FALSE);
88 wmove(dialog, height-3, 0);
94 wmove(dialog, height-2, 1);
97 display_helpline(dialog, height-1, width);
98 print_button(dialog, " OK ", height-2, width/2-6, TRUE);
116 dialog_mesgbox(unsigned char *title, unsigned char *prompt, int height, int width)
126 if (height < 0)
127 height = strheight(prompt)+2+2;
137 if (height > LINES)
138 height = LINES;
141 y = (LINES - height)/2;
145 draw_shadow(stdscr, y, x, height, width);
147 dialog = newwin(height, width, y, x);
150 fprintf(stderr, "\nnewwin(%d,%d,%d,%d) failed, maybe wrong dims\n", height,width,y,x);
155 draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr);
166 wmove(dialog, height-3, 0);
172 wmove(dialog, height-2, 1);
175 display_helpline(dialog, height-1, width);
176 print_button(dialog, " OK ", height-2, width/2-6, TRUE);
179 theight = height - 4;
184 print_perc(dialog, height-3, width-9, (float) (startline+theight)/max_lines);
185 wmove(dialog, height-2, width/2-3);
214 if (startline - height > 0) {
234 print_perc(dialog, height-3, width-9, (float) (startline+theight)/max_lines);
235 wmove(dialog, height-2, width/2-3);
307 print_page(WINDOW *win, int height, int width, unsigned char *buf, int startline, int hscroll)
317 for (i=0; i<height; i++) {