19 /* waste o' pointers */
20 void (*show)( /* some bummu */);
21 void (*hide)( /* some bummu */);
22 void (*update)( /* some bummu */);
23 void (*mouseover)( /* some bummu */);
24 void (*selected)( /* some bummu */);
27 typedef enum MenuEntryRenderType {
28 MenuEntryRenderType_None = 0,
29 MenuEntryRenderType_Submenu 1 << 0,
30 MenuEntryRenderType_Boolean 1 << 1,
31 MenuEntryRenderType_Separator 1 << 2,
33 MenuEntryRenderType_Other 1 << 7
43 MenuEntryRenderType render_type;
45 gboolean boolean_value;
51 Menu *menu_new(char *label, Menu *parent);
52 MenuEntry *menu_entry_new_full(char *label, Action *action,
53 MenuEntryRenderType render_type,
54 gpointer render_data, gpointer submenu);
56 #define menu_entry_new(label, action) \
57 menu_entry_new(label, action, MenuEntryRenderType_None, NULL, NULL)
59 void menu_entry_set_submenu(MenuEntry *entry, Menu *submenu);
61 void menu_add_entry(Menu *menu, MenuEntry *entry);