Lines Matching defs:win
48 mvwin(WINDOW *win, int by, int bx)
51 SCREEN *sp = _nc_screen_of(win);
54 T((T_CALLED("mvwin(%p,%d,%d)"), (void *) win, by, bx));
56 if (!win || (win->_flags & _ISPAD))
65 if (win->_flags & _SUBWIN) {
67 WINDOW *parent = win->_parent;
74 if ((by - parent->_begy == win->_pary) &&
75 (bx - parent->_begx == win->_parx))
78 WINDOW *clone = dupwin(win);
80 /* now we have the clone, so relocate win */
82 werase(win); /* Erase the original place */
84 wbkgrnd(win, CHREF(parent->_nc_bkgd));
85 wsyncup(win); /* Tell the parent(s) */
87 err = mvderwin(win,
91 err = copywin(clone, win,
92 0, 0, 0, 0, win->_maxy, win->_maxx, 0);
94 wsyncup(win);
105 if (by + win->_maxy > screen_lines(SP_PARM) - 1
106 || bx + win->_maxx > screen_columns(SP_PARM) - 1
117 win->_begy = (NCURSES_SIZE_T) by;
118 win->_begx = (NCURSES_SIZE_T) bx;
119 returnCode(touchwin(win));