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()
375 if (browser->top_idx < (u64)-offset) in ui_browser__update_nr_entries()
376 offset = -browser->top_idx; in ui_browser__update_nr_entries()
379 browser->top_idx += offset; in ui_browser__update_nr_entries()
383 browser->seek(browser, browser->top_idx, SEEK_SET); in ui_browser__update_nr_entries()
427 if (browser->index == browser->top_idx + browser->rows) { in ui_browser__run()
428 ++browser->top_idx; in ui_browser__run()
436 if (browser->index < browser->top_idx) { in ui_browser__run()
437 --browser->top_idx; in ui_browser__run()
455 if (browser->top_idx + browser->rows > browser->nr_entries - 1) in ui_browser__run()
462 browser->top_idx += offset; in ui_browser__run()
466 if (browser->top_idx == 0) in ui_browser__run()
469 if (browser->top_idx < browser->rows) in ui_browser__run()
470 offset = browser->top_idx; in ui_browser__run()
475 browser->top_idx -= offset; in ui_browser__run()
487 browser->top_idx = browser->index - offset; in ui_browser__run()
629 unsigned int row = 0, idx = browser->top_idx; in ui_browser__argv_refresh()
678 if (start < browser->top_idx + browser->rows) { in __ui_browser__line_arrow_up()
679 row = start - browser->top_idx; in __ui_browser__line_arrow_up()
690 if (end > browser->top_idx) in __ui_browser__line_arrow_up()
691 end_row = end - browser->top_idx; in __ui_browser__line_arrow_up()
699 if (end >= browser->top_idx) { in __ui_browser__line_arrow_up()
718 if (start >= browser->top_idx) { in __ui_browser__line_arrow_down()
719 row = start - browser->top_idx; in __ui_browser__line_arrow_down()
730 if (end >= browser->top_idx + browser->rows) in __ui_browser__line_arrow_down()
733 end_row = end - browser->top_idx; in __ui_browser__line_arrow_down()
739 if (end < browser->top_idx + browser->rows) { in __ui_browser__line_arrow_down()
770 if (row + diff <= browser->top_idx) in ui_browser__mark_fused()
773 end_row = row + diff - browser->top_idx; in ui_browser__mark_fused()
777 while (--end_row >= 0 && end_row > (int)(row - browser->top_idx)) { in ui_browser__mark_fused()
782 end_row = (int)(row - browser->top_idx); in ui_browser__mark_fused()
790 if (row < browser->top_idx) in ui_browser__mark_fused()
793 end_row = row - browser->top_idx; in ui_browser__mark_fused()