blob: 688172c062b99f2ef27ebb740a1c527760e31579 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
struct listnav {
/* current window */
int wmin, wmax, wlen;
/* selected item moving inside of window */
int sel;
/* bounds of actual list */
int min, max;
};
void listnav_init(struct listnav *nav);
void listnav_update_bounds(struct listnav *nav, int min, int max);
void listnav_update_wlen(struct listnav *nav, int wlen);
void listnav_update_sel(struct listnav *nav, int sel);
|