Lines Matching refs:top_idx

191 	return browser->top_idx + row == browser->index;  in ui_browser__is_current_entry()
258 browser->index = browser->top_idx = 0; in ui_browser__reset_index()
377 if (browser->top_idx < (u64)-offset) in ui_browser__update_nr_entries()
378 offset = -browser->top_idx; in ui_browser__update_nr_entries()
381 browser->top_idx += offset; in ui_browser__update_nr_entries()
385 browser->seek(browser, browser->top_idx, SEEK_SET); in ui_browser__update_nr_entries()
429 if (browser->index == browser->top_idx + browser->rows) { in ui_browser__run()
430 ++browser->top_idx; in ui_browser__run()
438 if (browser->index < browser->top_idx) { in ui_browser__run()
439 --browser->top_idx; in ui_browser__run()
457 if (browser->top_idx + browser->rows > browser->nr_entries - 1) in ui_browser__run()
464 browser->top_idx += offset; in ui_browser__run()
468 if (browser->top_idx == 0) in ui_browser__run()
471 if (browser->top_idx < browser->rows) in ui_browser__run()
472 offset = browser->top_idx; in ui_browser__run()
477 browser->top_idx -= offset; in ui_browser__run()
489 browser->top_idx = browser->index - offset; in ui_browser__run()
631 unsigned int row = 0, idx = browser->top_idx; in ui_browser__argv_refresh()
680 if (start < browser->top_idx + browser->rows) { in __ui_browser__line_arrow_up()
681 row = start - browser->top_idx; in __ui_browser__line_arrow_up()
692 if (end > browser->top_idx) in __ui_browser__line_arrow_up()
693 end_row = end - browser->top_idx; in __ui_browser__line_arrow_up()
701 if (end >= browser->top_idx) { in __ui_browser__line_arrow_up()
720 if (start >= browser->top_idx) { in __ui_browser__line_arrow_down()
721 row = start - browser->top_idx; in __ui_browser__line_arrow_down()
732 if (end >= browser->top_idx + browser->rows) in __ui_browser__line_arrow_down()
735 end_row = end - browser->top_idx; in __ui_browser__line_arrow_down()
741 if (end < browser->top_idx + browser->rows) { in __ui_browser__line_arrow_down()
772 if (row + diff <= browser->top_idx) in ui_browser__mark_fused()
775 end_row = row + diff - browser->top_idx; in ui_browser__mark_fused()
779 while (--end_row >= 0 && end_row > (int)(row - browser->top_idx)) { in ui_browser__mark_fused()
784 end_row = (int)(row - browser->top_idx); in ui_browser__mark_fused()
792 if (row < browser->top_idx) in ui_browser__mark_fused()
795 end_row = row - browser->top_idx; in ui_browser__mark_fused()