Lines Matching refs:index
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()
317 pct = ((browser->index * (browser->height - 1)) / in ui_browser__scrollbar_set()
378 browser->index += offset; in ui_browser__update_nr_entries()
424 if (browser->index == browser->nr_entries - 1) in ui_browser__run()
426 ++browser->index; in ui_browser__run()
427 if (browser->index == browser->top_idx + browser->rows) { in ui_browser__run()
433 if (browser->index == 0) in ui_browser__run()
435 --browser->index; in ui_browser__run()
436 if (browser->index < browser->top_idx) { in ui_browser__run()
459 if (browser->index + offset > browser->nr_entries - 1) in ui_browser__run()
460 offset = browser->nr_entries - 1 - browser->index; in ui_browser__run()
461 browser->index += offset; in ui_browser__run()
474 browser->index -= offset; in ui_browser__run()
486 browser->index = browser->nr_entries - 1; in ui_browser__run()
487 browser->top_idx = browser->index - offset; in ui_browser__run()