MCPcopy Create free account
hub / github.com/Kitware/CMake / wvline

Function wvline

Utilities/cmpdcurses/pdcurses/border.c:260–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260int wvline(WINDOW *win, chtype ch, int n)
261{
262 int endpos, x;
263
264 PDC_LOG(("wvline() - called\n"));
265
266 if (!win || n < 1)
267 return ERR;
268
269 endpos = min(win->_cury + n, win->_maxy);
270 x = win->_curx;
271
272 ch = _attr_passthru(win, ch ? ch : ACS_VLINE);
273
274 for (n = win->_cury; n < endpos; n++)
275 {
276 win->_y[n][x] = ch;
277
278 if (x < win->_firstch[n] || win->_firstch[n] == _NO_CHANGE)
279 win->_firstch[n] = x;
280
281 if (x > win->_lastch[n])
282 win->_lastch[n] = x;
283 }
284
285 PDC_sync(win);
286
287 return OK;
288}
289
290int vline(chtype ch, int n)
291{

Callers 4

vlineFunction · 0.85
mvvlineFunction · 0.85
mvwvlineFunction · 0.85
wvline_setFunction · 0.85

Calls 3

minFunction · 0.85
_attr_passthruFunction · 0.85
PDC_syncFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…