Lines Matching refs:top_idx
192 return browser->top_idx + row == browser->index; in ui_browser__is_current_entry()
259 browser->index = browser->top_idx = 0; in ui_browser__reset_index()
374 if (browser->top_idx < (u64)-offset) in ui_browser__update_nr_entries()
375 offset = -browser->top_idx; in ui_browser__update_nr_entries()
378 browser->top_idx += offset; in ui_browser__update_nr_entries()
382 browser->seek(browser, browser->top_idx, SEEK_SET); in ui_browser__update_nr_entries()
426 if (browser->index == browser->top_idx + browser->rows) { in ui_browser__run()
427 ++browser->top_idx; in ui_browser__run()
435 if (browser->index < browser->top_idx) { in ui_browser__run()
436 --browser->top_idx; in ui_browser__run()
454 if (browser->top_idx + browser->rows > browser->nr_entries - 1) in ui_browser__run()
461 browser->top_idx += offset; in ui_browser__run()
465 if (browser->top_idx == 0) in ui_browser__run()
468 if (browser->top_idx < browser->rows) in ui_browser__run()
469 offset = browser->top_idx; in ui_browser__run()
474 browser->top_idx -= offset; in ui_browser__run()
486 browser->top_idx = browser->index - offset; in ui_browser__run()
614 browser->top = browser->top + browser->top_idx + offset; in ui_browser__argv_seek()
626 unsigned int row = 0, idx = browser->top_idx; in ui_browser__argv_refresh()
673 if (start < browser->top_idx + browser->rows) { in __ui_browser__line_arrow_up()
674 row = start - browser->top_idx; in __ui_browser__line_arrow_up()
685 if (end > browser->top_idx) in __ui_browser__line_arrow_up()
686 end_row = end - browser->top_idx; in __ui_browser__line_arrow_up()
694 if (end >= browser->top_idx) { in __ui_browser__line_arrow_up()
713 if (start >= browser->top_idx) { in __ui_browser__line_arrow_down()
714 row = start - browser->top_idx; in __ui_browser__line_arrow_down()
725 if (end >= browser->top_idx + browser->rows) in __ui_browser__line_arrow_down()
728 end_row = end - browser->top_idx; in __ui_browser__line_arrow_down()
734 if (end < browser->top_idx + browser->rows) { in __ui_browser__line_arrow_down()
759 if (row >= browser->top_idx) in ui_browser__mark_fused()
760 end_row = row - browser->top_idx; in ui_browser__mark_fused()