7 typedef void (*callfn
) ();
8 /* FIXME: We have to leave this type ambiguous, because `callfn' is
9 used both for functions that take an argument and ones that don't.
10 That ought to be cleared up. */
26 int start_x
; /* position relative to menubar start */
30 extern int menubar_visible
;
32 /* The button bar menu */
36 int active
; /* If the menubar is in use */
37 int dropped
; /* If the menubar has dropped */
38 Menu
*menu
; /* The actual menus */
40 int selected
; /* Selected menu on the top bar */
41 int subsel
; /* Selected entry on the submenu */
42 int max_entry_len
; /* Cache value for the columns in a box */
43 int previous_selection
; /* Selected widget before activating menu */
46 Menu
create_menu (char *name
, menu_entry
*entries
, int count
);
47 void destroy_menu (Menu menu
);
48 WMenu
*menubar_new (int y
, int x
, int cols
, Menu menu
[], int items
);
49 void menubar_arrange (WMenu
* menubar
);
50 int menubar_event (Gpm_Event
*event
, WMenu
*menubar
);