Lines Matching refs:cols

160 int str_props(const char *mbstring, unsigned int *cols, bool *has_multi_col)
184 if (cols != NULL)
185 *cols = ncol;
458 RETURN_ERROR("Terminal too small, screen cols - shadow <= 0");
463 RETURN_ERROR("Terminal too small, screen cols - shadow "
678 text_size(struct bsddialog_conf *conf, int rows, int cols, const char *text,
701 if (cols == BSDDIALOG_AUTOSIZE) {
704 } else if (cols == BSDDIALOG_FULLSCREEN) {
708 startwtext = cols - BORDERS - TEXTHMARGINS;
719 RETURN_FMTERROR("(fixed cols or fullscreen) "
720 "needed at least %d cols to draw text",
799 set_widget_size(struct bsddialog_conf *conf, int rows, int cols, int *h, int *w)
817 if (cols == BSDDIALOG_FULLSCREEN)
819 else if (cols < BSDDIALOG_FULLSCREEN)
821 else if (cols > BSDDIALOG_AUTOSIZE) /* fixed cols */
822 *w = MIN(cols, maxwidth); /* cols is at most maxwidth */
823 /* cols == 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,
849 if (cols == BSDDIALOG_AUTOSIZE) {
874 RETURN_FMTERROR("Current cols: %d, nedeed at least %d",
916 "(begin X + width (+ shadow) > terminal cols)");
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,
1153 if (*x + strwidth > cols) {
1158 wresize(win, *rows, cols);
1170 if (j + wcwidth(str[i]) > 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,
1221 if (x >= cols) {
1231 if (x >= cols) {
1240 wresize(pad, rows, cols);
1339 int cols, struct dialog *d)
1346 d->cols = cols;