Lines Matching refs:top_idx
178 return browser->top_idx + row == browser->index; in ui_browser__is_current_entry()
244 browser->index = browser->top_idx = 0; in ui_browser__reset_index()
359 if (browser->top_idx < (u64)-offset) in ui_browser__update_nr_entries()
360 offset = -browser->top_idx; in ui_browser__update_nr_entries()
363 browser->top_idx += offset; in ui_browser__update_nr_entries()
367 browser->seek(browser, browser->top_idx, SEEK_SET); in ui_browser__update_nr_entries()
411 if (browser->index == browser->top_idx + browser->rows) { in ui_browser__run()
412 ++browser->top_idx; in ui_browser__run()
420 if (browser->index < browser->top_idx) { in ui_browser__run()
421 --browser->top_idx; in ui_browser__run()
439 if (browser->top_idx + browser->rows > browser->nr_entries - 1) in ui_browser__run()
446 browser->top_idx += offset; in ui_browser__run()
450 if (browser->top_idx == 0) in ui_browser__run()
453 if (browser->top_idx < browser->rows) in ui_browser__run()
454 offset = browser->top_idx; in ui_browser__run()
459 browser->top_idx -= offset; in ui_browser__run()
471 browser->top_idx = browser->index - offset; in ui_browser__run()
599 browser->top = browser->top + browser->top_idx + offset; in ui_browser__argv_seek()
611 unsigned int row = 0, idx = browser->top_idx; in ui_browser__argv_refresh()
658 if (start < browser->top_idx + browser->rows) { in __ui_browser__line_arrow_up()
659 row = start - browser->top_idx; in __ui_browser__line_arrow_up()
670 if (end > browser->top_idx) in __ui_browser__line_arrow_up()
671 end_row = end - browser->top_idx; in __ui_browser__line_arrow_up()
679 if (end >= browser->top_idx) { in __ui_browser__line_arrow_up()
698 if (start >= browser->top_idx) { in __ui_browser__line_arrow_down()
699 row = start - browser->top_idx; in __ui_browser__line_arrow_down()
710 if (end >= browser->top_idx + browser->rows) in __ui_browser__line_arrow_down()
713 end_row = end - browser->top_idx; in __ui_browser__line_arrow_down()
719 if (end < browser->top_idx + browser->rows) { in __ui_browser__line_arrow_down()