Lines Matching defs:win

214 dlg_attr_clear(WINDOW *win, int height, int width, chtype attr)
218 (void) wattrset(win, attr);
220 (void) wmove(win, i, 0);
222 (void) waddch(win, ' ');
224 (void) touchwin(win);
506 dlg_get_attrs(WINDOW *win)
510 result = (chtype) getattrs(win);
514 wattr_get(win, &my_result, &my_pair, NULL);
556 define_color(WINDOW *win, int foreground)
558 chtype attrs = dlg_get_attrs(win);
656 dlg_print_listitem(WINDOW *win,
677 (void) wattrset(win, selected ? attrs[3] : attrs[2]);
678 (void) waddnstr(win, text, indx[1]);
683 (void) wattrset(win, selected ? attrs[1] : attrs[0]);
684 (void) waddnstr(win,
697 (void) wattrset(win, selected ? attrs[1] : attrs[0]);
698 dlg_print_text(win, text, cols[limit], &attr);
708 dlg_print_text(WINDOW *win, const char *txt, int cols, chtype *attr)
721 getyx(win, y_origin, x_origin);
739 *attr |= define_color(win, code - '0');
796 getyx(win, y_before, x_before);
799 (void) waddch(win, CharOf(*txt++) | useattr);
800 getyx(win, y_after, x_after);
821 dlg_print_line(WINDOW *win,
914 if (win) {
915 dlg_print_text(win, prompt, (cols[wrap_inx] - hidden), attr);
935 justify_text(WINDOW *win,
950 if (win) {
957 if (win != 0)
958 getyx(win, last_y, last_x);
966 if (win != 0)
967 (void) wmove(win, y, lm);
971 } else if (win != 0)
972 (void) wmove(win, y, lm);
975 prompt = dlg_print_line(win, &attr, prompt, lm, rm, &x);
976 if (win != 0)
977 getyx(win, last_y, last_x);
981 if (win != 0)
982 (void) wmove(win, y, lm);
987 if (win != 0)
988 (void) wmove(win, last_y, last_x);
1003 dlg_print_autowrap(WINDOW *win, const char *prompt, int height, int width)
1005 justify_text(win, prompt,
1020 dlg_print_scrolled(WINDOW *win,
1032 getyx(win, oldy, oldx);
1053 (void) wattrset(win, dialog_attr);
1054 dlg_print_autowrap(win, prompt, height + 1 + (3 * MARGIN), width);
1065 win, /* dstwin */
1084 (void) wattrset(win, position_indicator_attr);
1085 (void) wmove(win, MARGIN + height, wide - 4);
1087 (void) waddstr(win, buffer);
1089 (void) wattrset(win, border_attr);
1090 whline(win, dlg_boxchar(ACS_HLINE), 4 - len);
1100 (void) wattrset(win, dialog_attr);
1101 dlg_print_autowrap(win, prompt, height + 1 + (3 * MARGIN), width);
1104 wmove(win, oldy, oldx);
1388 dlg_get_cell_attrs(WINDOW *win)
1396 if (win_wch(win, &wch) == OK
1403 result = winch(win) & (A_ATTRIBUTES & ~A_COLOR);
1425 dlg_draw_box2(WINDOW *win, int y, int x, int height, int width,
1429 chtype save = dlg_get_attrs(win);
1431 (void) wattrset(win, 0);
1433 (void) wmove(win, y + i, x);
1436 (void) waddch(win, borderchar | dlg_boxchar(ACS_ULCORNER));
1438 (void) waddch(win, borderchar | dlg_boxchar(ACS_LLCORNER));
1440 (void) waddch(win, borderchar2 | dlg_boxchar(ACS_URCORNER));
1442 (void) waddch(win, borderchar2 | dlg_boxchar(ACS_LRCORNER));
1444 (void) waddch(win, borderchar | dlg_boxchar(ACS_HLINE));
1446 (void) waddch(win, borderchar2 | dlg_boxchar(ACS_HLINE));
1448 (void) waddch(win, borderchar | dlg_boxchar(ACS_VLINE));
1450 (void) waddch(win, borderchar2 | dlg_boxchar(ACS_VLINE));
1452 (void) waddch(win, boxchar | ' ');
1454 (void) wattrset(win, save);
1458 dlg_draw_box(WINDOW *win, int y, int x, int height, int width,
1461 dlg_draw_box2(win, y, x, height, width, boxchar, borderchar, boxchar);
1465 find_window(WINDOW *win)
1471 if (p->normal == win) {
1490 in_window(WINDOW *win, int y, int x)
1493 int y_base = getbegy(win);
1494 int x_base = getbegx(win);
1495 int y_last = getmaxy(win) + y_base;
1496 int x_last = getmaxx(win) + x_base;
1499 result = win;
1577 WINDOW *win = dw->shadow;
1583 && (y2 = (y + getbegy(win) - getbegy(cellwin))) >= 0
1584 && (x2 = (x + getbegx(win) - getbegx(cellwin))) >= 0
1675 dlg_draw_shadow(WINDOW *win, int y, int x, int height, int width)
1677 repaint_shadow(find_window(win), TRUE, y, x, height, width);
1985 dlg_draw_title(WINDOW *win, const char *title)
1989 chtype save = dlg_get_attrs(win);
1990 int x = centered(getmaxx(win), title);
1992 (void) wattrset(win, title_attr);
1993 wmove(win, 0, x);
1994 dlg_print_text(win, title, getmaxx(win) - x, &attr);
1995 (void) wattrset(win, save);
2001 dlg_draw_bottom_box2(WINDOW *win, chtype on_left, chtype on_right, chtype on_inside)
2003 int width = getmaxx(win);
2004 int height = getmaxy(win);
2007 (void) wattrset(win, on_left);
2008 (void) wmove(win, height - 3, 0);
2009 (void) waddch(win, dlg_boxchar(ACS_LTEE));
2011 (void) waddch(win, dlg_boxchar(ACS_HLINE));
2012 (void) wattrset(win, on_right);
2013 (void) waddch(win, dlg_boxchar(ACS_RTEE));
2014 (void) wattrset(win, on_inside);
2015 (void) wmove(win, height - 2, 1);
2017 (void) waddch(win, ' ');
2021 dlg_draw_bottom_box(WINDOW *win)
2023 dlg_draw_bottom_box2(win, border_attr, dialog_attr, dialog_attr);
2031 dlg_del_window(WINDOW *win)
2051 if (p->normal == win) {
2095 WINDOW *win;
2100 || (win = newwin(height, width, y, x)) == 0) {
2105 p->normal = win;
2114 (void) keypad(win, TRUE);
2115 return win;
2123 dlg_move_window(WINDOW *win, int height, int width, int y, int x)
2127 if (win != 0) {
2130 if ((p = find_window(win)) != 0) {
2131 (void) wresize(win, height, width);
2132 (void) mvwin(win, y, x);
2155 WINDOW *win;
2157 if ((win = subwin(parent, height, width, y, x)) == 0) {
2162 add_subwindow(parent, win);
2163 (void) keypad(win, TRUE);
2164 return win;
2351 dlg_set_focus(WINDOW *parent, WINDOW *win)
2353 if (win != 0) {
2355 getpary(win) + getcury(win),
2356 getparx(win) + getcurx(win));
2357 (void) wnoutrefresh(win);
2626 dlg_getbegx(WINDOW *win)
2629 getbegyx(win, y, x);
2633 dlg_getbegy(WINDOW *win)
2636 getbegyx(win, y, x);
2643 dlg_getcurx(WINDOW *win)
2646 getyx(win, y, x);
2650 dlg_getcury(WINDOW *win)
2653 getyx(win, y, x);
2660 dlg_getmaxx(WINDOW *win)
2663 getmaxyx(win, y, x);
2667 dlg_getmaxy(WINDOW *win)
2670 getmaxyx(win, y, x);
2677 dlg_getparx(WINDOW *win)
2680 getparyx(win, y, x);
2684 dlg_getpary(WINDOW *win)
2687 getparyx(win, y, x);
2694 dlg_wgetparent(WINDOW *win)
2701 if (p->shadow == win) {