6 typedef void (*callfn
) (void);
22 int start_x
; /* position relative to menubar start */
26 extern int menubar_visible
;
28 /* The button bar menu */
29 typedef struct WMenu
{
32 int active
; /* If the menubar is in use */
33 int dropped
; /* If the menubar has dropped */
34 Menu
**menu
; /* The actual menus */
36 int selected
; /* Selected menu on the top bar */
37 int subsel
; /* Selected entry on the submenu */
38 int max_entry_len
; /* Cache value for the columns in a box */
39 int previous_widget
; /* Selected widget ID before activating menu */
42 Menu
*create_menu (const char *name
, menu_entry
*entries
, int count
,
43 const char *help_node
);
44 void destroy_menu (Menu
*menu
);
45 WMenu
*menubar_new (int y
, int x
, int cols
, Menu
*menu
[], int items
);
46 void menubar_arrange (WMenu
*menubar
);