Lines Matching defs:win
49 scroll(WINDOW *win)
52 return wscrl(win, 1);
97 wscrl(WINDOW *win, int nlines)
101 __CTRACE(__CTRACE_WINDOW, "wscrl: (%p) lines=%d\n", win, nlines);
103 if (__predict_false(win == NULL))
106 if (!(win->flags & __SCROLLOK))
111 getyx(win, oy, ox);
113 wmove(win, win->scr_t, 1);
114 winsdelln(win, 0 - nlines);
115 wmove(win, oy, ox);
117 if (win == curscr) {
120 win->curx = 0;
121 __CTRACE(__CTRACE_WINDOW, "scroll: win == curscr\n");
128 * Set the top and bottom of the scrolling region for win.
131 wsetscrreg(WINDOW *win, int top, int bottom)
133 if (__predict_false(win == NULL))
136 if (top < 0 || bottom >= win->maxy || bottom - top < 1)
138 win->scr_t = top;
139 win->scr_b = bottom;
145 * Get the top and bottom of the scrolling region for win.
148 wgetscrreg(WINDOW *win, int *top, int *bottom)
150 if (__predict_false(win == NULL))
153 *top = win->scr_t;
154 *bottom = win->scr_b;