blob: 7143832bf3c49d4c996f5d7574204426cfa61a4f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
typedef char * (*list_window_callback_fn_t) (int index,
int *highlight,
void *data);
typedef struct
{
WINDOW *w;
int rows, cols;
int start;
int selected;
int clear;
int repaint;
} list_window_t;
list_window_t *list_window_init(WINDOW *w, int width, int height);
list_window_t *list_window_free(list_window_t *lw);
void list_window_reset(list_window_t *lw);
void list_window_set_selected(list_window_t *lw, int n);
void list_window_paint(list_window_t *lw,
list_window_callback_fn_t callback,
void *callback_data);
void list_window_previous(list_window_t *lw);
void list_window_next(list_window_t *lw, int length);
void list_window_first(list_window_t *lw);
void list_window_last(list_window_t *lw, int length);
void list_window_previous_page(list_window_t *lw);
void list_window_next_page(list_window_t *lw, int length);
|