Lines Matching +full:f +full:- +full:tile
1 // SPDX-License-Identifier: GPL-2.0+
38 #define DLG_COLOR(dialog, f, b, h) \ argument
40 dlg.dialog.fg = (f); \
148 init_pair(pair, color->fg, color->bg); in init_one_color()
149 if (color->hl) in init_one_color()
150 color->atr = A_BOLD | COLOR_PAIR(pair); in init_one_color()
152 color->atr = COLOR_PAIR(pair); in init_one_color()
223 /* Display background title if it exists ... - SLH */ in dialog_clear()
231 for (pos = dlg.subtitles; pos != NULL; pos = pos->next) { in dialog_clear()
233 len += strlen(pos->text) + 3; in dialog_clear()
237 if (len > columns - 2) { in dialog_clear()
240 skip = len - (columns - 2 - strlen(ellipsis)); in dialog_clear()
243 for (pos = dlg.subtitles; pos != NULL; pos = pos->next) { in dialog_clear()
247 skip--; in dialog_clear()
252 skip--; in dialog_clear()
254 if (skip < strlen(pos->text)) { in dialog_clear()
255 waddstr(stdscr, pos->text + skip); in dialog_clear()
258 skip -= strlen(pos->text); in dialog_clear()
263 skip--; in dialog_clear()
266 for (i = len + 1; i < columns - 1; i++) in dialog_clear()
287 return -ERRDISPLAYTOOSMALL; in init_dialog()
323 * tile if wider than dialog (- 2 chars).
328 int tlen = MIN(width - 2, strlen(title)); in print_title()
330 mvwaddch(dialog, 0, (width - tlen) / 2 - 1, ' '); in print_title()
331 mvwaddnstr(dialog, 0, (width - tlen)/2, title, tlen); in print_title()
340 * if there is no room for at least 4 nonblanks following a double-space.
351 if (prompt_len <= width - x * 2) { /* If prompt is short */ in print_autowrap()
352 wmove(win, y, (width - prompt_len) / 2); in print_autowrap()
370 room = width - cur_x; in print_autowrap()
376 || wlen + 1 + (sp2 - sp) > room))) { in print_autowrap()
447 else if (i == height - 1 && !j) in draw_box()
449 else if (!i && j == width - 1) in draw_box()
451 else if (i == height - 1 && j == width - 1) in draw_box()
455 else if (i == height - 1) in draw_box()
459 else if (j == width - 1) in draw_box()
501 --in_paren; in first_alpha()
516 * keypad(FALSE) turn off ncurses support for escape sequences - and that's
539 return -1; in on_key_esc()
558 next = p->next; in item_reset()
571 item_cur->next = p; in item_make()
578 vsnprintf(item_cur->node.str, sizeof(item_cur->node.str), fmt, ap); in item_make()
587 avail = sizeof(item_cur->node.str) - strlen(item_cur->node.str); in item_add_str()
590 vsnprintf(item_cur->node.str + strlen(item_cur->node.str), in item_add_str()
592 item_cur->node.str[sizeof(item_cur->node.str) - 1] = '\0'; in item_add_str()
598 item_cur->node.tag = tag; in item_set_tag()
602 item_cur->node.data = ptr; in item_set_data()
607 item_cur->node.selected = val; in item_set_selected()
620 return item_cur->node.data; in item_data()
625 return item_cur->node.tag; in item_tag()
633 for (p = item_head; p; p = p->next) in item_count()
651 for (p = item_head; p; p = p->next) { in item_n()
661 return item_cur->node.str; in item_str()
666 return (item_cur->node.selected != 0); in item_is_selected()
671 return (item_cur->node.tag == tag); in item_is_tag()