Lines Matching refs:offset
43 void ui_browser__list_head_seek(struct ui_browser *self, off_t offset, int whence)
62 if (offset > 0) {
63 while (offset-- != 0)
66 while (offset++ != 0)
73 void ui_browser__rb_tree_seek(struct ui_browser *self, off_t offset, int whence)
92 if (offset > 0) {
93 while (offset-- != 0)
96 while (offset++ != 0)
212 off_t offset;
244 offset = self->height;
245 if (self->index + offset > self->nr_entries - 1)
246 offset = self->nr_entries - 1 - self->index;
247 self->index += offset;
248 self->top_idx += offset;
249 self->seek(self, +offset, SEEK_CUR);
256 offset = self->top_idx;
258 offset = self->height;
260 self->index -= offset;
261 self->top_idx -= offset;
262 self->seek(self, -offset, SEEK_CUR);
268 offset = self->height - 1;
269 if (offset >= self->nr_entries)
270 offset = self->nr_entries - 1;
273 self->top_idx = self->index - offset;
274 self->seek(self, -offset, SEEK_END);