Lines Matching defs:win
80 putwin(WINDOW *win, FILE *fp)
87 __CTRACE(__CTRACE_FILEIO, "putwin: win %p\n", win);
89 if (__predict_false(win == NULL))
92 /* win can't be a subwin */
93 if (win->orig != NULL)
103 if (fwrite(win, sizeof(WINDOW), 1, fp) != 1)
107 if (__putnsp(win->bnsp, fp) == ERR)
112 for (y = 0; y < win->maxy; y++)
113 for (sp = win->alines[y]->line, x = 0; x < win->maxx;
121 if (__putnsp(win->bnsp, fp) == ERR)
174 WINDOW *wtmp, *win;
194 win = __newwin(_cursesi_screen, wtmp->maxy, wtmp->maxx,
196 if (win == NULL)
198 win->cury = wtmp->cury;
199 win->curx = wtmp->curx;
200 win->reqy = wtmp->reqy;
201 win->reqx = wtmp->reqx;
202 win->flags = wtmp->flags;
203 win->delay = wtmp->delay;
204 win->wattr = wtmp->wattr;
205 win->bch = wtmp->bch;
206 win->battr = wtmp->battr;
207 win->scr_t = wtmp->scr_t;
208 win->scr_b = wtmp->scr_b;
211 __swflags(win);
214 if (__getnsp(win->bnsp, fp) == ERR)
219 for (y = 0; y < win->maxy; y++) {
220 for (sp = win->alines[y]->line, x = 0; x < win->maxx;
228 if (__getnsp(win->bnsp, fp) == ERR)
233 __touchline(win, y, 0, (int) win->maxx - 1);
235 __CTRACE(__CTRACE_FILEIO, "getwin: win = %p\n", win);
236 return win;
239 delwin(win);