Home
last modified time | relevance | path

Searched refs:htext (Results 1 – 9 of 9) sorted by relevance

/freebsd-14.2/contrib/bsddialog/lib/
H A Dinfobox.c39 int htext, wtext; in infobox_autosize() local
42 if (text_size(conf, rows, cols, text, NULL, 0, 1, &htext, in infobox_autosize()
51 *h = widget_min_height(conf, htext, 0, false); in infobox_autosize()
H A Dmessagebox.c41 int htext, wtext; in message_autosize() local
45 if (text_size(conf, rows, cols, text, &bs, 0, 1, &htext, in message_autosize()
49 *hastext = htext > 0 ? true : false; in message_autosize()
56 *h = widget_min_height(conf, htext, 0, true); in message_autosize()
H A Dlib_util.h99 struct buttons *bs, int rowsnotext, int startwtext, int *htext, int *wtext);
105 widget_min_height(struct bsddialog_conf *conf, int htext, int minwidget,
H A Dmenubox.c351 int htext, wtext, menusize, notext; in menu_autosize() local
363 if (text_size(conf, rows, cols, text, &bs, notext, linelen + 4, &htext, in menu_autosize()
373 2 /*buttons*/ - htext; in menu_autosize()
379 *h = widget_min_height(conf, htext, menusize, true); in menu_autosize()
382 if (*h - 6 - htext <= 0) in menu_autosize()
385 *menurows = MIN(*h-6-htext, nitems); in menu_autosize()
390 if (*h - 6 - htext <= 0) in menu_autosize()
393 *menurows = MIN(*h - 6 - htext, (int)*menurows); in menu_autosize()
H A Dformbox.c415 int htext, wtext, menusize, notext; in menu_autosize() local
427 if (text_size(conf, rows, cols, text, &bs, notext, linelen + 4, &htext, in menu_autosize()
437 2 /*buttons*/ - htext; in menu_autosize()
443 *h = widget_min_height(conf, htext, menusize, true); in menu_autosize()
446 if (*h - 6 - htext <= 0) in menu_autosize()
449 *menurows = MIN(*h-6-htext, nitems); in menu_autosize()
454 if (*h - 6 - htext <= 0) in menu_autosize()
457 *menurows = MIN(*h - 6 - htext, (int)*menurows); in menu_autosize()
H A Dbarbox.c88 int htext, wtext; in bar_autosize() local
92 &htext, &wtext) != 0) in bar_autosize()
100 *h = widget_min_height(conf, htext, 3 /* bar */, bs != NULL); in bar_autosize()
221 int htextpad, htext, wtext; in do_mixedgauge() local
254 max_minbarlen, &htext, &wtext) != 0) in do_mixedgauge()
260 h = widget_min_height(conf, htext, nminibars + 3, false); in do_mixedgauge()
H A Dcalendarbox.c253 int htext, wtext; in calendar_autosize() local
257 &htext, &wtext) != 0) in calendar_autosize()
265 *h = widget_min_height(conf, htext, MINHCAL, true); in calendar_autosize()
H A Dtimebox.c75 int htext, wtext; in datetime_autosize() local
78 if (text_size(conf, rows, cols, text, &bs, 3, minw, &htext, in datetime_autosize()
87 *h = widget_min_height(conf, htext, 3 /* windows */, true); in datetime_autosize()
H A Dlib_util.c741 struct buttons *bs, int rowsnotext, int startwtext, int *htext, int *wtext) in text_size() argument
782 if (text_autosize(conf, &tp, maxhtext, startwtext, changewtext, htext, in text_size()
842 widget_min_height(struct bsddialog_conf *conf, int htext, int minwidget, in widget_min_height() argument
854 min += htext; in widget_min_height()