Lines Matching defs:width

214 dlg_attr_clear(WINDOW *win, int height, int width, chtype attr)
221 for (j = 0; j < width; j++)
612 centered(int width, const char *string)
617 left = (width - need) / 2 - 1;
990 /* Set the final height and width for the calling function */
1003 dlg_print_autowrap(WINDOW *win, const char *prompt, int height, int width)
1007 width,
1013 * that we create a "tall" window of the proper width, let the text wrap within
1024 int width,
1035 int wide = width - (2 * MARGIN);
1051 dummy = newwin(high, width, 0, 0);
1054 dlg_print_autowrap(win, prompt, height + 1 + (3 * MARGIN), width);
1060 dlg_print_autowrap(dummy, prompt, high, width);
1101 dlg_print_autowrap(win, prompt, height + 1 + (3 * MARGIN), width);
1170 auto_size_preformatted(const char *prompt, int *height, int *width)
1186 * width proportionately.
1196 * If the aspect ratio is too small after decreasing the width, then
1197 * incrementally increase the width until the aspect ratio is equal to or
1207 *width = wide;
1212 * widget width at least this long, we can avoid splitting a word on the
1234 * if (height or width == -1) Maximize()
1235 * if (height or width == 0), justify and return actual limits.
1240 int *height, int *width,
1250 int save_wide = *width;
1255 if (*width == 0)
1256 *width = -1;
1265 if (*width <= 0) {
1275 justify_text((WINDOW *) 0, prompt, high, wide, height, width);
1277 auto_size_preformatted(prompt, height, width);
1281 justify_text((WINDOW *) 0, prompt, high, wide, height, width);
1285 if (*width < title_length) {
1286 justify_text((WINDOW *) 0, prompt, high, title_length, height, width);
1287 *width = title_length;
1290 if (*width < mincols && save_wide == 0)
1291 *width = mincols;
1293 *width += nc;
1299 *width = save_wide;
1308 int *width,
1312 real_auto_size(title, prompt, height, width, boxlines, mincols);
1314 if (*width > SCOLS) {
1316 *width = SCOLS;
1324 * if (height or width == -1) Maximize()
1325 * if (height or width == 0)
1327 * width=MIN(SCOLS, MAX(longer line+n, mincols));
1333 int *width,
1349 if ((*height == -1) || (*width == -1)) {
1351 *width = SCOLS - (dialog_vars.begin_set ? dialog_vars.begin_x : 0);
1353 if ((*height != 0) && (*width != 0)) {
1355 if (*width > SCOLS)
1356 *width = SCOLS;
1379 *width = MIN(SCOLS, MAX((len + nc), mincols));
1380 /* here width and height can be maximized if > SCOLS|SLINES because
1425 dlg_draw_box2(WINDOW *win, int y, int x, int height, int width,
1434 for (j = 0; j < width; j++)
1439 else if (!i && j == width - 1)
1441 else if (i == height - 1 && j == width - 1)
1449 else if (j == width - 1)
1458 dlg_draw_box(WINDOW *win, int y, int x, int height, int width,
1461 dlg_draw_box2(win, y, x, height, width, boxchar, borderchar, boxchar);
1610 repaint_shadow(DIALOG_WINDOWS * dw, bool draw, int y, int x, int height, int width)
1620 for (j = 0; j < width; ++j) {
1626 RepaintCell(dw, draw, i + y + SHADOW_ROWS, j + x + width);
1675 dlg_draw_shadow(WINDOW *win, int y, int x, int height, int width)
1677 repaint_shadow(find_window(win), TRUE, y, x, height, width);
1796 dlg_print_size(int height, int width)
1799 fprintf(dialog_state.output, "Size: %d, %d\n", height, width);
1803 dlg_ctl_size(int height, int width)
1806 if ((width > COLS) || (height > LINES)) {
1807 dlg_exiterr("Window too big. (height, width) = (%d, %d). Max allowed (%d, %d).",
1808 height, width, LINES, COLS);
1812 && ((width > SCOLS || height > SLINES))) {
1813 if ((width <= COLS) && (height <= LINES)) {
1817 dlg_exiterr("Window+Shadow too big. (height, width) = (%d, %d). Max allowed (%d, %d).",
1818 height, width, SLINES, SCOLS);
1957 dlg_box_x_ordinate(int width)
1965 x = (SCOLS - width) / 2;
2003 int width = getmaxx(win);
2010 for (i = 0; i < width - 2; i++)
2016 for (i = 0; i < width - 2; i++)
2083 dlg_new_window(int height, int width, int y, int x)
2085 return dlg_new_modal_window(stdscr, height, width, y, x);
2093 dlg_new_modal_window(WINDOW *parent, int height, int width, int y, int x)
2100 || (win = newwin(height, width, y, x)) == 0) {
2102 y, x, height, width);
2123 dlg_move_window(WINDOW *win, int height, int width, int y, int x)
2128 dlg_ctl_size(height, width);
2131 (void) wresize(win, height, width);
2153 dlg_sub_window(WINDOW *parent, int height, int width, int y, int x)
2157 if ((win = subwin(parent, height, width, y, x)) == 0) {
2159 y, x, height, width);