blob: 98d0375efd4a9f910c2b3da85a35ed55bae64593 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef MENU_H
#define MENU_H
struct menuitem {
const char *label;
void ( *action )( struct gwm_window *window, xcb_generic_event_t *ev,
union callback_param cp );
void ( *enter_action )( struct gwm_window *window, xcb_generic_event_t *ev,
union callback_param cp );
void ( *leave_action )( struct gwm_window *window, xcb_generic_event_t *ev,
union callback_param cp );
union callback_param cp;
xcb_window_t icon;
};
extern void popup_menu( struct gwm_window *window, xcb_generic_event_t *ev,
int num_items, const struct menuitem *items );
extern const event_handler menu_handlers[], menuitem_handlers[];
#endif
|