Lines Matching defs:height

241 dlg_attr_clear(WINDOW *win, int height, int width, chtype attr)
246 for (i = 0; i < height; i++) {
1095 /* Set the final height and width for the calling function */
1108 dlg_print_autowrap(WINDOW *win, const char *prompt, int height, int width)
1111 height,
1128 int height,
1156 dlg_print_autowrap(win, prompt, height + 1 + (3 * MARGIN), width);
1174 height, /* dmaxrow */
1182 int percent = (int) ((height + offset) * 100.0 / y);
1193 (void) wmove(win, MARGIN + height, wide - 4);
1202 last = (y - height);
1209 dlg_print_autowrap(win, prompt, height + 1 + (3 * MARGIN), width);
1278 auto_size_preformatted(const char *prompt, int *height, int *width)
1313 *height = high;
1341 * if (height or width == -1) Maximize()
1342 * if (height or width == 0), justify and return actual limits.
1347 int *height, int *width,
1354 int save_high = *height;
1360 if (*height == 0)
1361 *height = -1;
1366 max_high = (*height < 0);
1369 if (*height > 0) {
1370 high = *height;
1387 justify_text((WINDOW *) 0, prompt, high, wide, height, width);
1389 auto_size_preformatted(prompt, height, width);
1393 justify_text((WINDOW *) 0, prompt, high, wide, height, width);
1398 justify_text((WINDOW *) 0, prompt, high, title_length, height, width);
1402 dialog_state.text_height = *height;
1409 *height += boxlines + (2 * MARGIN);
1413 *height = save_high;
1418 *height = SLINES - (dialog_vars.begin_set ? dialog_vars.begin_y : 0);
1428 int *height,
1434 *height, *width,
1437 real_auto_size(title, prompt, height, width, boxlines, mincols);
1440 (*height)++;
1444 if (*height > SLINES) {
1445 *height = SLINES;
1448 *height, *width,
1453 * if (height or width == -1) Maximize()
1454 * if (height or width == 0)
1455 * height=MIN(SLINES, num.lines in fd+n);
1461 int *height,
1476 if ((*height == -1) || (*width == -1)) {
1477 *height = SLINES - (dialog_vars.begin_set ? dialog_vars.begin_y : 0);
1480 if ((*height != 0) && (*width != 0)) {
1484 if (*height > SLINES)
1485 *height = SLINES;
1513 *height = MIN(SLINES, count + numlines + boxlines);
1515 /* here width and height can be maximized if > SCOLS|SLINES because
1539 dlg_draw_box2(WINDOW *win, int y, int x, int height, int width,
1546 for (i = 0; i < height; i++) {
1551 else if (i == height - 1 && !j)
1555 else if (i == height - 1 && j == width - 1)
1559 else if (i == height - 1)
1572 dlg_draw_box(WINDOW *win, int y, int x, int height, int width,
1575 dlg_draw_box2(win, y, x, height, width, boxchar, borderchar, boxchar);
1755 repaint_shadow(DIALOG_WINDOWS * dw, bool draw, int y, int x, int height, int width)
1766 RepaintCell(dw, draw, i + y + height, j + x + SHADOW_COLS);
1769 for (i = 0; i < height; i++) {
1820 dlg_draw_shadow(WINDOW *win, int y, int x, int height, int width)
1822 repaint_shadow(SearchTopWindows(win), TRUE, y, x, height, width);
2034 dlg_print_size(int height, int width)
2037 fprintf(dialog_state.output, "Size: %d, %d\n", height, width);
2038 DLG_TRACE(("# print size: %dx%d\n", height, width));
2043 dlg_ctl_size(int height, int width)
2046 if ((width > COLS) || (height > LINES)) {
2047 dlg_exiterr("Window too big. (height, width) = (%d, %d). Max allowed (%d, %d).",
2048 height, width, LINES, COLS);
2052 && ((width > SCOLS || height > SLINES))) {
2053 if ((width <= COLS) && (height <= LINES)) {
2057 dlg_exiterr("Window+Shadow too big. (height, width) = (%d, %d). Max allowed (%d, %d).",
2058 height, width, SLINES, SCOLS);
2082 dlg_calc_listh(int *height, int *list_height, int item_no)
2084 /* calculate new height and list_height */
2086 if (rows - (*height) > 0) {
2087 if (rows - (*height) > item_no)
2090 *list_height = rows - (*height);
2092 (*height) += (*list_height);
2217 dlg_box_y_ordinate(int height)
2225 y = (SLINES - height) / 2;
2250 int height = getmaxy(win);
2254 (void) wmove(win, height - 3, 0);
2261 (void) wmove(win, height - 2, 1);
2329 dlg_new_window(int height, int width, int y, int x)
2331 return dlg_new_modal_window(stdscr, height, width, y, x);
2339 dlg_new_modal_window(WINDOW *parent, int height, int width, int y, int x)
2346 || (win = newwin(height, width, y, x)) == 0) {
2348 y, x, height, width);
2413 dlg_move_window(WINDOW *win, int height, int width, int y, int x)
2418 dlg_ctl_size(height, width);
2421 (void) wresize(win, height, width);
2476 dlg_der_window(WINDOW *parent, int height, int width, int y, int x)
2483 if ((win = derwin(parent, height, width, y, x)) != 0) {
2491 dlg_sub_window(WINDOW *parent, int height, int width, int y, int x)
2495 if ((win = subwin(parent, height, width, y, x)) == 0) {
2497 y, x, height, width);