1 /* Scrolling Menus - Header
2 
3  * Copyright (C) 1998 J.A. Bezemer
4  *
5  * Licensed under the terms of the GNU General Public License.
6  * ABSOLUTELY NO WARRANTY.
7  * See the file `COPYING' in this directory.
8  */
9 
10 #ifndef HAVE_SCROLLMENU_H
11 #define HAVE_SCROLLMENU_H
12 
13 
14 typedef struct
15   {
16     char **items;
17     int number;
18     int y;
19     int x;			/* (y,x): upper left corner */
20     int h;
21     int w;			/* h=height, w=width */
22     int selected;
23     int firstonscreen;
24     int last_of_1st_part;	/* 'private' for dirfile-menu */
25     int hasfocus;
26   }
27 scrollmenu_t;
28 
29 
30 extern void scrollmenu_display (scrollmenu_t * menu);
31 
32 extern int scrollmenu_stdkeys (int key, scrollmenu_t * menu);
33 				/* Returns >0: item was selected;
34 				   Returns -1 if nothing serious has happened.
35 				 */
36 
37 extern void scrollmenu_delete_menu (scrollmenu_t * menu);
38 
39 
40 #endif /* HAVE_SCROLLMENU_H */
41