3 * \brief Header: pulldown menu code
11 typedef void (*callfn
) (void);
26 int start_x
; /* position relative to menubar start */
30 extern int menubar_visible
;
32 /* The button bar menu */
33 typedef struct WMenu
{
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_widget
; /* Selected widget ID before activating menu */
46 Menu
*create_menu (const char *name
, menu_entry
*entries
, int count
,
47 const char *help_node
);
48 void destroy_menu (Menu
*menu
);
49 WMenu
*menubar_new (int y
, int x
, int cols
, Menu
*menu
[], int items
);
50 void menubar_arrange (WMenu
*menubar
);