Home
last modified time | relevance | path

Searched refs:maxx (Results 1 – 25 of 69) sorted by relevance

123

/netbsd-src/lib/libcurses/
H A Drefresh.c89 "wnoutrefresh: win %p, begy %d, begx %d, maxy %d, maxx %d\n", in wnoutrefresh()
90 win, win->begy, win->begx, win->maxy, win->maxx); in wnoutrefresh()
93 win->maxy, win->maxx); in wnoutrefresh()
132 if (pmaxx > pad->maxx - pad->begx) in pnoutrefresh()
133 pmaxx = pad->maxx - pad->begx; in pnoutrefresh()
147 * (begy, begx) to (maxy, maxx) at screen position (wbegy, wbegx). in _wnoutrefresh()
151 int maxy, int maxx) in _wnoutrefresh()
167 begy, begx, wbegy, wbegx, maxy, maxx); in _wnoutrefresh()
216 if (begx <= dwin->curx && dwin->curx < maxx in _wnoutrefresh()
217 && 0 <= newx && newx < screen->__virtscr->maxx) in _wnoutrefresh()
148 _wnoutrefresh(WINDOW * win,int begy,int begx,int wbegy,int wbegx,int maxy,int maxx) _wnoutrefresh() argument
[all...]
H A Dclrtoeol.c67 __LDATA *end, *maxx, *sp; in wclrtoeol() local
92 end = &win->alines[y]->line[win->maxx]; in wclrtoeol()
94 maxx = &win->alines[y]->line[x]; in wclrtoeol()
96 for (sp = maxx; sp < end; sp++) { in wclrtoeol()
106 maxx = sp; in wclrtoeol()
119 __CTRACE(__CTRACE_ERASE, "CLRTOEOL: y = %d, minx = %d, maxx = %d, " in wclrtoeol()
121 y, minx, (int)(maxx - win->alines[y]->line), in wclrtoeol()
124 __touchline(win, y, x, (int)win->maxx - 1); in wclrtoeol()
H A Dnewwin.c90 if ((new_one = __newwin(_cursesi_screen, win->maxy, win->maxx, in dupwin()
130 int ry, maxy, maxx; in __newwin()
143 maxx = ncols > 0 ? ncols : COLS - bx + ncols; in __newwin()
145 if ((win = __makenew(screen, maxy, maxx, by, bx, 0, ispad)) == NULL) in __newwin()
170 for (sp = lp->line, j = 0; j < maxx; j++, sp++) { in __newwin()
179 lp->hash = __hash_line(lp->line, maxx); in __newwin()
197 int maxy, maxx; in __subwin()
207 maxx = ncols > 0 ? ncols : orig->maxx + orig->begx - bx + ncols; in __subwin()
210 || bx + maxx > ori in __subwin()
127 int ry, maxy, maxx; __newwin() local
194 int maxy, maxx; __subwin() local
[all...]
H A Dmvwin.c66 if (((win->maxx + dx) > parent->maxx) || in mvderwin()
85 if (*plp->lastchp < x + win->maxx) in mvderwin()
86 *plp->lastchp = x + win->maxx; in mvderwin()
109 bx < 0 || bx + win->maxx > win->screen->COLS) in mvwin()
125 if (bx < orig->begx || win->maxx + dx > orig->maxx) in mvwin()
H A Daddbytes.c229 if (*x + newx > win->maxx - 1) in _cursesi_addbyte()
230 newx = win->maxx - *x - 1; in _cursesi_addbyte()
329 if (*x == win->maxx - 1) in _cursesi_addbyte()
401 if (*x + newx > win->maxx - 1) in _cursesi_addwchar()
402 newx = win->maxx - *x - 1; in _cursesi_addwchar()
484 if (cw > win->maxx - *x) { in _cursesi_addwchar()
498 for (tp = lp; *x < win->maxx; tp++, (*x)++) { in _cursesi_addwchar()
506 newx = win->maxx - 1 + win->ch_off; in _cursesi_addwchar()
509 __touchline(win, *y, sx, (int) win->maxx - 1); in _cursesi_addwchar()
570 __CTRACE(__CTRACE_INPUT, "_cursesi_addwchar: *x = %d, win->maxx in _cursesi_addwchar()
[all...]
H A Dresize.c73 if (win->begx > win->orig->begx + win->orig->maxx) in wresize()
74 win->begx = win->orig->begx + win->orig->maxx - 1; in wresize()
75 if (win->begx + ncols > win->orig->begx + win->orig->maxx) in wresize()
78 ncols += win->orig->begx + win->orig->maxx - win->begx; in wresize()
262 __CTRACE(__CTRACE_WINDOW, "resize: win->maxx = %d\n", win->maxx); in __resizewin()
339 win->maxx = ncols; in __resizewin()
351 for (sp = lp->line, j = 0; j < win->maxx; j++, sp++) { in __resizewin()
370 __CTRACE(__CTRACE_WINDOW, "resize: win->maxx = %d\n", win->maxx); in __resizewin()
[all...]
H A Dins_wstr.c153 lstr = malloc(sizeof(wchar_t) * win->maxx); in wins_nwstr()
217 if (width > win->maxx - win->curx + 1) { in wins_nwstr()
303 for (i = 0; i < win->maxx; i++) in wins_nwstr()
315 if (sx + width + pcw <= win->maxx) { in wins_nwstr()
317 temp1 = &win->alines[y]->line[win->maxx - 1]; in wins_nwstr()
323 win->maxx + pcw, win->maxx - 1); in wins_nwstr()
349 for (i = 0; i < win->maxx; i++) in wins_nwstr()
382 for (i = 0; i < win->maxx; i++) in wins_nwstr()
394 __touchline(win, (int) y, lx, (int) win->maxx in wins_nwstr()
[all...]
H A Dclrtobot.c67 __LDATA *sp, *end, *maxx; in wclrtobot() local
81 maxx = NULL; /* XXX gcc -Wuninitialized */ in wclrtobot()
93 end = &win->alines[y]->line[win->maxx]; in wclrtobot()
98 maxx = sp; in wclrtobot()
115 (int)(maxx - win->alines[y]->line)); in wclrtobot()
H A Dinsstr.c165 if (len < win->maxx - win->curx) { in winsnstr()
167 temp1 = &win->alines[win->cury]->line[win->maxx - 1]; in winsnstr()
187 *scp && x < len + win->curx && x < win->maxx; in winsnstr()
214 if (win->ch_off + win->maxx - 1 > *lnp->lastchp) in winsnstr()
215 *lnp->lastchp = win->ch_off + win->maxx - 1; in winsnstr()
216 __touchline(win, (int)win->cury, (int)win->curx, (int)win->maxx - 1); in winsnstr()
H A Ddelch.c96 end = &win->alines[win->cury]->line[win->maxx - 1]; in wdelch()
109 __touchline(win, (int)win->cury, (int)win->curx, (int)win->maxx - 1); in wdelch()
115 end = &win->alines[win->cury]->line[win->maxx - 1]; in wdelch()
133 if (sx + cw < win->maxx) { in wdelch()
150 __touchline(win, (int)win->cury, sx, (int)win->maxx - 1); in wdelch()
H A Dtoucholap.c61 endx = min(win1->maxx + win1->begx, win2->maxx + win2->begx); in touchoverlap()
66 win1->begx + win1->maxx); in touchoverlap()
69 win2->begx + win2->maxx); in touchoverlap()
H A Dinsdelln.c115 (size_t)win->maxx * __LDATASIZE); in winsdelln()
119 for (i = 0; i < win->maxx; i++) { in winsdelln()
134 __touchline(win, y, 0, (int)win->maxx - 1); in winsdelln()
159 (size_t)win->maxx * __LDATASIZE); in winsdelln()
163 for (i = 0; i < win->maxx; i++) { in winsdelln()
178 __touchline(win, y, 0, (int)win->maxx - 1); in winsdelln()
H A Dcopywin.c91 if (dmaxcol >= dstwin->maxx) in copywin()
92 dmaxcol = dstwin->maxx - 1; in copywin()
93 if (smincol + (dmaxcol - dmincol) >= srcwin->maxx) in copywin()
94 dmaxcol = srcwin->maxx + dmincol - smincol - 1; in copywin()
H A Dtouchwin.c185 (int) win->maxx - 1, 1); in wtouchln()
189 *wlp->firstchp < win->maxx + win->ch_off)
190 *wlp->firstchp = win->maxx + win->ch_off;
192 *wlp->lastchp < win->maxx + win->ch_off)
213 _cursesi_touchline_force(win, y, 0, (int) win->maxx - 1,
H A Dins_wch.c128 if (wins_nwstr(win, ws, min(win->maxx - x, in wins_wch()
145 if (cw > win->maxx - sx) in wins_wch()
154 temp1 = &win->alines[y]->line[win->maxx - 1]; in wins_wch()
210 newx = win->maxx - 1 + win->ch_off; in wins_wch()
213 __touchline(win, y, sx, (int)win->maxx - 1); in wins_wch()
H A Dchgat.c69 if (x >= win->maxx || y >= win->maxy) in mvwchgat()
74 if (count < 0 || count > win->maxx - x) in mvwchgat()
75 count = win->maxx - x; in mvwchgat()
H A Dinstr.c148 if (n < 0 || (n - 1) > win->maxx - win->curx - 1) { in winnstr()
149 epos = win->maxx - 1; in winnstr()
150 n = win->maxx - win->curx; in winnstr()
H A Dfileio.c113 for (sp = win->alines[y]->line, x = 0; x < win->maxx; in putwin()
194 win = __newwin(_cursesi_screen, wtmp->maxy, wtmp->maxx, in getwin()
220 for (sp = win->alines[y]->line, x = 0; x < win->maxx; in getwin()
233 __touchline(win, y, 0, (int) win->maxx - 1); in getwin()
H A Dmove.c71 if (x > win->maxx || y >= win->maxy) in wmove()
79 if (x == win->maxx) in wmove()
H A Dinchstr.c148 if (n < 0 || (n - 1) > win->maxx - win->curx - 1) in winchnstr()
149 epos = win->maxx - 1; in winchnstr()
/netbsd-src/external/gpl2/groff/dist/src/libs/libgroff/
H A Dgeometry.cpp124 int *minx, int *maxx, in check_output_arc_limits() argument
139 *minx = *maxx = xs; in check_output_arc_limits()
141 if (xe > *maxx) in check_output_arc_limits()
142 *maxx = xe; in check_output_arc_limits()
174 *maxx = radius; in check_output_arc_limits()
178 *maxx += xcenter; in check_output_arc_limits()
/netbsd-src/sbin/wsconsctl/
H A Dmouse.c75 { "calibration.maxx", &calibration.maxx,
104 field_by_value(&calibration.maxx)->flags & FLG_GET || in mouse_get_values()
174 field_disable_by_value(&calibration.maxx); in mouse_get_calibration()
184 if (field_by_value(&calibration.maxx)->flags & FLG_GET) in mouse_get_calibration()
185 calibration.maxx = tmp.maxx; in mouse_get_calibration()
254 field_by_value(&calibration.maxx)->flags & FLG_SET || in mouse_put_values()
323 if (field_by_value(&calibration.maxx)->flags & FLG_SET) in mouse_put_calibration()
324 tmp.maxx = calibration.maxx; in mouse_put_calibration()
362 if (field_by_value(&calibration.maxx)->flags & FLG_SET) in mouse_put_calibration()
363 pr_field(field_by_value(&calibration.maxx), " -> "); in mouse_put_calibration()
/netbsd-src/lib/libmenu/
H A Dpost.c43 int maxx, maxy, i; in post_menu() local
65 getmaxyx(menu->scrwin, maxy, maxx); in post_menu()
66 if ((maxx == ERR) || (maxy == ERR)) return E_SYSTEM_ERROR; in post_menu()
68 if ((menu->cols * menu->max_item_width + menu->cols - 1) > maxx) in post_menu()
/netbsd-src/usr.bin/msgc/
H A Dmsg_sys.def343 int maxx;
369 maxx = getmaxx(msg_win) - txt_x - 1;
380 off = pos - maxx;
381 if (off < 0 || len <= maxx)
387 if (npos - off > maxx)
388 off = npos - maxx;
391 if (npos > maxx)
392 npos = maxx;
521 int maxx, maxy;
525 maxx = getmaxx(msg_win);
[all …]
/netbsd-src/games/larn/
H A Ddisplay.c20 static int minx, maxx, miny, maxy, k, m; variable
385 maxx = x + 3; in showcell()
390 maxx = x + 1; in showcell()
397 if (maxx > MAXX - 1) in showcell()
398 maxx = MAXX - 1; in showcell()
405 for (mm = minx; mm <= maxx; mm++) in showcell()
408 x = maxx; in showcell()
432 mm = maxx; in showcell()

123