Added basic icon support.
[gwm.git] / menu.h
blobef0e2e6148b00ec6ab2e34321592214257e8ee26
1 #ifndef MENU_H
2 #define MENU_H
4 struct menuitem {
5 const char *label;
6 void ( *action )( struct gwm_window *window, xcb_generic_event_t *ev,
7 union callback_param cp );
8 union callback_param cp;
9 struct gwm_window *icon;
11 extern void popup_menu( struct gwm_window *window, xcb_generic_event_t *ev,
12 int num_items, const struct menuitem *items );
14 extern const event_handler menu_handlers[], menuitem_handlers[];
16 #endif