Lines Matching +full:0 +full:xe
41 int xe; member
44 int margin; /* 2 with multicolumn char, 0 otherwise */
54 setcchar(&borderch, L" ", 0, 0, NULL); in updateborders()
56 setcchar(&borderch, L"|", 0, 0, NULL); in updateborders()
60 if (st->xpad > 0) { in updateborders()
62 mvwvline(d->widget, (d->h / 2) - 2, 0, arrowch, 4); in updateborders()
65 mvwvline_set(d->widget, (d->h / 2) - 2, 0, &borderch, 4); in updateborders()
90 if (set_widget_size(d->conf, d->rows, d->cols, &d->h, &d->w) != 0) in textbox_size_position()
93 d->text, NULL, &d->bs, st->hpad, st->wpad + st->margin) != 0) in textbox_size_position()
95 minw = (st->wpad > 0) ? 2 /*multicolumn char*/ + st->margin : 0 ; in textbox_size_position()
96 if (widget_checksize(d->h, d->w, &d->bs, MIN(st->hpad, 1), minw) != 0) in textbox_size_position()
98 if (set_widget_position(d->conf, &d->y, &d->x, d->h, d->w) != 0) in textbox_size_position()
101 return (0); in textbox_size_position()
110 if (textbox_size_position(d, st) != 0) in textbox_draw()
112 if (draw_dialog(d) != 0) in textbox_draw()
118 st->xs = (st->margin == 0) ? d->x + 1 : d->x + 2; in textbox_draw()
120 st->xe = st->xs + d->w - 3 - st->margin; in textbox_draw()
121 st->ypad = st->xpad = 0; in textbox_draw()
124 return (0); in textbox_draw()
146 if (prepare_dialog(conf, "" /* fake */, rows, cols, &d) != 0) in bsddialog_textbox()
151 if (conf->text.tablen > 0) in bsddialog_textbox()
157 st.margin = 0; in bsddialog_textbox()
158 i = 0; in bsddialog_textbox()
160 if (str_props(buf, &linecols, &has_multicol_ch) != 0) in bsddialog_textbox()
170 mvwaddstr(st.pad, i, 0, buf); in bsddialog_textbox()
178 if (textbox_draw(&d, &st) != 0) in bsddialog_textbox()
187 * pnoutrefresh(pad, ypad, xpad, ys, xs, ye, xe); in bsddialog_textbox()
191 prefresh(st.pad, st.ypad, st.xpad, st.ys, st.xs, st.ye, st.xe); in bsddialog_textbox()
217 st.ypad = 0; in bsddialog_textbox()
220 st.ypad = MAX(st.hpad - st.printrows, 0); in bsddialog_textbox()
223 st.ypad = MAX(st.ypad - st.printrows, 0); in bsddialog_textbox()
230 case '0': in bsddialog_textbox()
231 st.xpad = 0; in bsddialog_textbox()
235 st.xpad = MAX(st.xpad - 1, 0); in bsddialog_textbox()
244 st.ypad = MAX(st.ypad - 1, 0); in bsddialog_textbox()
255 if (f1help_dialog(conf) != 0) in bsddialog_textbox()
257 if (textbox_draw(&d, &st) != 0) in bsddialog_textbox()
262 if (textbox_draw(&d, &st) != 0) in bsddialog_textbox()