4 /* IMPORTANT NOTE: This header is dependent on HAVE_X / HAVE_XVIEW. If you
5 * include this header, you have to move it to the group of HAVE_X dependant
6 * modules in {xv|tk}/Makefile.in !!!
12 typedef void (*callfn
) ();
13 /* FIXME: We have to leave this type ambiguous, because `callfn' is
14 used both for functions that take an argument and ones that don't.
15 That ought to be cleared up. */
25 # ifndef xview_walkmenu_DEFINED
26 typedef unsigned long Menu
;
35 int start_x
; /* position relative to menubar start */
40 Menu
create_menu (char *name
, menu_entry
*entries
, int count
);
41 void destroy_menu (Menu menu
);
43 extern int menubar_visible
;
45 /* The button bar menu */
49 int active
; /* If the menubar is in use */
50 int dropped
; /* If the menubar has dropped */
51 Menu
*menu
; /* The actual menus */
53 int selected
; /* Selected menu on the top bar */
54 int subsel
; /* Selected entry on the submenu */
55 int max_entry_len
; /* Cache value for the columns in a box */
56 int previous_selection
; /* Selected widget before activating menu */
59 WMenu
*menubar_new (int y
, int x
, int cols
, Menu menu
[], int items
);