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 */
31 extern int menubar_visible
;
33 /* The button bar menu */
37 int active
; /* If the menubar is in use */
38 int dropped
; /* If the menubar has dropped */
39 Menu
*menu
; /* The actual menus */
41 int selected
; /* Selected menu on the top bar */
42 int subsel
; /* Selected entry on the submenu */
43 int max_entry_len
; /* Cache value for the columns in a box */
44 int previous_selection
; /* Selected widget before activating menu */
47 Menu
create_menu (char *name
, menu_entry
*entries
, int count
,
49 void destroy_menu (Menu menu
);
50 WMenu
*menubar_new (int y
, int x
, int cols
, Menu menu
[], int items
);
51 void menubar_arrange (WMenu
* menubar
);
52 int menubar_event (Gpm_Event
*event
, WMenu
*menubar
);