7 typedef void (*callfn
) (void);
23 int start_x
; /* position relative to menubar start */
27 extern int menubar_visible
;
29 /* The button bar menu */
30 typedef struct WMenu
{
33 int active
; /* If the menubar is in use */
34 int dropped
; /* If the menubar has dropped */
35 Menu
**menu
; /* The actual menus */
37 int selected
; /* Selected menu on the top bar */
38 int subsel
; /* Selected entry on the submenu */
39 int max_entry_len
; /* Cache value for the columns in a box */
40 int previous_selection
; /* Selected widget before activating menu */
43 Menu
*create_menu (char *name
, menu_entry
*entries
, int count
,
45 void destroy_menu (Menu
*menu
);
46 WMenu
*menubar_new (int y
, int x
, int cols
, Menu
*menu
[], int items
);
47 void menubar_arrange (WMenu
*menubar
);