Searched refs:visiblelen (Results 1 – 2 of 2) sorted by relevance
284 local visiblelen = min(#menu, ScreenHeight-y-3)285 DrawTitledBox(x, y, w, visiblelen, menu.label)287 if (visiblelen < #menu) then289 local f2 = (top + visiblelen - 1) / #menu290 local y1 = f1 * visiblelen + y + 1291 local y2 = f2 * visiblelen + y + 1298 for i = top, top+visiblelen-1 do362 if (n > (top+visiblelen-1)) then363 top = n - visiblelen + 1378 n = int(min(n + visiblelen/2, #menu))[all …]
2047 uint visiblelen; in wscrollbar() local2049 visiblelen = (gwin.active->erow - (gwin.active->srow+sadd)) + 1 - (gwin.active->border?2:0); in wscrollbar()2051 visiblelen = (gwin.active->ecol - (gwin.active->scol+sadd)) + 1 - (gwin.active->border?2:0) - 2; in wscrollbar()2052 uint barlen = visiblelen - 2; in wscrollbar()2053 uint thumblen = (visiblelen*barlen) / total; in wscrollbar()