Lines Matching full:rows
678 text_size(struct bsddialog_conf *conf, int rows, int cols, const char *text,
689 /* Rows */
690 if (rows == BSDDIALOG_AUTOSIZE || rows == BSDDIALOG_FULLSCREEN) {
693 maxhtext = rows - BORDERS - rowsnotext;
799 set_widget_size(struct bsddialog_conf *conf, int rows, int cols, int *h, int *w)
806 if (rows == BSDDIALOG_FULLSCREEN)
808 else if (rows < BSDDIALOG_FULLSCREEN)
810 else if (rows > BSDDIALOG_AUTOSIZE) /* fixed rows */
811 *h = MIN(rows, maxheight); /* rows is at most maxheight */
812 /* rows == AUTOSIZE: each widget has to set its size */
829 set_widget_autosize(struct bsddialog_conf *conf, int rows, int cols, int *h,
835 if (rows == BSDDIALOG_AUTOSIZE || cols == BSDDIALOG_AUTOSIZE ||
837 if (text_size(conf, rows, cols, text, bs, hnotext, minw,
844 if (rows == BSDDIALOG_AUTOSIZE) {
865 RETURN_FMTERROR("Current rows: %d, needed at least: %d",
923 if (set_widget_size(d->conf, d->rows, d->cols, &d->h, &d->w) != 0)
925 if (set_widget_autosize(d->conf, d->rows, d->cols, &d->h, &d->w,
1128 print_string(WINDOW *win, int *rows, int cols, int *y, int *x, wchar_t *str,
1156 if (*y >= *rows) {
1157 *rows = *y + 1;
1158 wresize(win, *rows, cols);
1187 int i, j, z, rows, cols, x, y, tablen;
1196 getmaxyx(pad, rows, cols);
1206 print_string(pad, &rows, cols, &y, &x, string,
1238 if (y >= rows) {
1239 rows = y + 1;
1240 wresize(pad, rows, cols);
1338 prepare_dialog(struct bsddialog_conf *conf, const char *text, int rows,
1345 d->rows = rows;