Lines Matching refs:ncols
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,
58 derwin(WINDOW *orig, int nlines, int ncols, int by, int bx)
61 return __subwin(orig, nlines, ncols, orig->begy + by, orig->begx + 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);
115 newpad(int nlines, int ncols)
118 if (nlines < 1 || ncols < 1)
120 return __newwin(_cursesi_screen, nlines, ncols, 0, 0, TRUE, FALSE);
124 __newwin(SCREEN *screen, int nlines, int ncols, int by, int bx, int ispad,
143 maxx = ncols > 0 ? ncols : COLS - bx + ncols;
160 win->reqx = ncols;
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);
207 maxx = ncols > 0 ? ncols : orig->maxx + orig->begx - bx + ncols;
218 win->reqx = ncols;
260 __makenew(SCREEN *screen, int nlines, int ncols, int by, int bx, int sub,
270 nlines, ncols, by, bx);
271 if (nlines <= 0 || ncols <= 0)
299 calloc(ncols * nlines, sizeof(__LDATA))) == NULL) {
331 lp->line = &win->wspace[i * ncols];
339 lp->lastch = ncols;
341 lp->firstch = ncols;
346 __CTRACE(__CTRACE_WINDOW, "makenew: ncols = %d\n", ncols);
350 win->maxx = ncols;
352 win->reqx = ncols;