Add support for the zoomed state to managed windows.
[gwm.git] / menu.h
blob98d0375efd4a9f910c2b3da85a35ed55bae64593
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 void ( *enter_action )( struct gwm_window *window, xcb_generic_event_t *ev,
9 union callback_param cp );
10 void ( *leave_action )( struct gwm_window *window, xcb_generic_event_t *ev,
11 union callback_param cp );
12 union callback_param cp;
13 xcb_window_t icon;
15 extern void popup_menu( struct gwm_window *window, xcb_generic_event_t *ev,
16 int num_items, const struct menuitem *items );
18 extern const event_handler menu_handlers[], menuitem_handlers[];
20 #endif