/freebsd/contrib/bsddialog/lib/ |
H A D | messagebox.c | 36 int htext; /* real h text to draw, to use with htextpad */ member 43 if (s->htext > 0 && s->htextpad > s->printrows) { in textupdate() 54 static int message_size_position(struct dialog *d, int *htext) in message_size_position() argument 61 d->text, (*htext < 0) ? htext : NULL, &d->bs, 0, 0) != 0) in message_size_position() 63 minw = (*htext > 0) ? 1 + TEXTHMARGINS : 0 ; in message_size_position() 64 if (widget_checksize(d->h, d->w, &d->bs, MIN(*htext, 1), minw) != 0) in message_size_position() 80 if (message_size_position(d, &s->htext) != 0) in message_draw() 108 s.htext = -1; in do_message() 215 int htext; in bsddialog_infobox() local 220 htext = -1; in bsddialog_infobox() [all …]
|
H A D | lib_util.c | 679 struct buttons *bs, int rowsnotext, int startwtext, int *htext, int *wtext) in text_size() argument 722 if (text_autosize(conf, &tp, maxhtext, startwtext, changewtext, htext, in text_size() 733 widget_min_height(struct bsddialog_conf *conf, int htext, int hnotext, in widget_min_height() argument 742 min += htext; in widget_min_height() 833 int htext, wtext; in set_widget_autosize() local 838 &htext, &wtext) != 0) in set_widget_autosize() 841 *rowstext = htext; in set_widget_autosize() 845 *h = widget_min_height(conf, htext, hnotext, bs->nbuttons > 0); in set_widget_autosize() 921 int dialog_size_position(struct dialog *d, int hnotext, int minw, int *htext) in dialog_size_position() argument 926 d->text, htext, &d->bs, hnotext, minw) != 0) in dialog_size_position()
|
H A D | barbox.c | 236 const char **minilabels, int *htext) in mixedgauge_size_position() argument 250 d->text, htext, &d->bs, nminibars + HBOX, max_minibarlen) != 0) in mixedgauge_size_position() 267 int ystext, htext; in do_mixedgauge() local 280 if (mixedgauge_size_position(&d, nminibars, minilabels, &htext) != 0) in do_mixedgauge() 324 ystext = MAX(d.h - BORDERS - htext - HBOX, (int)nminibars); in do_mixedgauge()
|
H A D | formbox.c | 565 int htext, hform; in form_size_position() local 577 d->text, &htext, &d->bs, hform, f->w + 4) != 0) in form_size_position() 580 if (d->h - BORDERS - htext - HBUTTONS < 2 + (int)f->minviewrows) { in form_size_position() 583 f->viewrows = MIN(d->h - BORDERS - htext - HBUTTONS, hform) - 2; in form_size_position() 586 f->viewrows = MIN(d->h - BORDERS - htext - HBUTTONS, hform) - 2; in form_size_position()
|
H A D | lib_util.h | 158 int dialog_size_position(struct dialog *d, int hnotext, int minw, int *htext);
|
H A D | menubox.c | 422 int htext, hmenu; in menu_size_position() local 435 d->text, &htext, &d->bs, hmenu, m->line + 4) != 0) in menu_size_position() 438 if (d->h - BORDERS - htext - HBUTTONS <= 2 /* menuborders */) in menu_size_position() 441 m->menurows = MIN(d->h - BORDERS - htext - HBUTTONS, hmenu) - 2; in menu_size_position()
|