4 #include "bcmenubar.inc"
5 #include "bcmenuitem.inc"
6 #include "bcsubwindow.h"
9 // A menu that pops up in the middle of a window or under a button.
13 class BC_PopupMenu
: public BC_SubWindow
21 virtual ~BC_PopupMenu();
23 virtual int handle_event() { return 0; };
26 int add_item(BC_MenuItem
*item
);
27 int remove_item(BC_MenuItem
*item
);
29 BC_MenuItem
* get_item(int i
);
31 void set_text(char *text
);
32 // Set icon of menu. Disables text.
33 void set_icon(BC_Pixmap
*pixmap
);
38 int deactivate_menu();
39 int focus_out_event();
40 int repeat_event(int64_t duration
);
41 int button_press_event();
42 int button_release_event();
43 int cursor_leave_event();
44 int cursor_enter_event();
45 int cursor_motion_event();
46 int translation_event();
47 int drag_start_event();
48 int drag_stop_event();
49 int drag_motion_event();
50 int set_images(VFrame
**data
);
60 BC_MenuPopup
*menu_popup
;
61 // Remember cursor position when no title
62 int button_press_x
, button_press_y
;