Lines Matching defs:by

47 static WINDOW *__makenew(SCREEN *screen, int nlines, int ncols, int by,
49 static WINDOW *__subwin(WINDOW *orig, int nlines, int ncols, int by, int bx,
54 * Create a new window in the same manner as subwin but (by, bx)
58 derwin(WINDOW *orig, int nlines, int ncols, int by, int bx)
61 return __subwin(orig, nlines, ncols, orig->begy + by, orig->begx + bx,
67 * Create a new pad in the same manner as subwin but (by, bx)
71 subpad(WINDOW *orig, int nlines, int ncols, int by, int bx)
74 return __subwin(orig, nlines, ncols, orig->begy + by, orig->begx + bx,
104 newwin(int nlines, int ncols, int by, int bx)
107 return __newwin(_cursesi_screen, nlines, ncols, by, bx, FALSE, FALSE);
124 __newwin(SCREEN *screen, int nlines, int ncols, int by, int bx, int ispad,
133 if (by < 0 || bx < 0)
138 by += __rippedlines(screen, 1);
142 maxy = nlines > 0 ? nlines : LINES - by - ry + nlines;
145 if ((win = __makenew(screen, maxy, maxx, by, bx, 0, ispad)) == NULL)
185 subwin(WINDOW *orig, int nlines, int ncols, int by, int bx)
188 return __subwin(orig, nlines, ncols, by, bx, FALSE);
192 __subwin(WINDOW *orig, int nlines, int ncols, int by, int bx, int ispad)
200 orig, nlines, ncols, by, bx, ispad);
206 maxy = nlines > 0 ? nlines : orig->maxy + orig->begy - by + nlines;
208 if (by < orig->begy || bx < orig->begx
209 || by + maxy > orig->maxy + orig->begy
213 by, bx, 1, ispad)) == NULL)
260 __makenew(SCREEN *screen, int nlines, int ncols, int by, int bx, int sub,
270 nlines, ncols, by, bx);
354 win->begy = by;
415 * Return true if window was created by newpad.