Lines Matching refs:top_idx
125 return self->top_idx + row == self->index; in ui_browser__is_current_entry()
141 self->index = self->top_idx = 0; in ui_browser__reset_index()
252 if (self->index == self->top_idx + self->height) { in ui_browser__run()
253 ++self->top_idx; in ui_browser__run()
261 if (self->index < self->top_idx) { in ui_browser__run()
262 --self->top_idx; in ui_browser__run()
268 if (self->top_idx + self->height > self->nr_entries - 1) in ui_browser__run()
275 self->top_idx += offset; in ui_browser__run()
279 if (self->top_idx == 0) in ui_browser__run()
282 if (self->top_idx < self->height) in ui_browser__run()
283 offset = self->top_idx; in ui_browser__run()
288 self->top_idx -= offset; in ui_browser__run()
300 self->top_idx = self->index - offset; in ui_browser__run()