18 /* waste o' pointers */
19 void (*show
)( /* some bummu */);
20 void (*hide
)( /* some bummu */);
21 void (*update
)( /* some bummu */);
22 void (*mouseover
)( /* some bummu */);
23 void (*selected
)( /* some bummu */);
26 typedef enum MenuEntryRenderType
{
27 MenuEntryRenderType_None
= 0,
28 MenuEntryRenderType_Submenu
1 << 0,
29 MenuEntryRenderType_Boolean
1 << 1,
30 MenuEntryRenderType_Separator
1 << 2,
32 MenuEntryRenderType_Other
1 << 7
42 MenuEntryRenderType render_type
;
44 gboolean boolean_value
;
50 Menu
*menu_new(char *label
, Menu
*parent
);
51 MenuEntry
*menu_entry_new_full(char *label
, Action
*action
,
52 MenuEntryRenderType render_type
,
53 gpointer render_data
, gpointer submenu
);
55 #define menu_entry_new(label, action) \
56 menu_entry_new(label, action, MenuEntryRenderType_None, NULL, NULL)
58 void menu_entry_set_submenu(MenuEntry
*entry
, Menu
*submenu
);
60 void menu_add_entry(Menu
*menu
, MenuEntry
*entry
);