5 #include "bcmenubar.inc"
6 #include "bcpixmap.inc"
7 #include "bcsubwindow.h"
9 class BC_MenuBar
: public BC_SubWindow
12 BC_MenuBar(int x
, int y
, int w
);
13 virtual ~BC_MenuBar();
17 int add_menu(BC_Menu
* menu
);
18 static int calculate_height(BC_WindowBase
*window
);
21 int focus_out_event();
23 int button_press_event();
24 int button_release_event();
25 int cursor_motion_event();
26 int cursor_enter_event();
27 int cursor_leave_event();
28 int resize_event(int w
, int h
);
29 int translation_event();
32 // Redraws items in active menu
38 // Array of menu titles
39 ArrayList
<BC_Menu
*> menu_titles
;
40 // number of button releases since activation
42 // When a menu is pulled down
44 BC_Pixmap
*menu_bar_bg
;
45 BC_Pixmap
*menu_title_bg
[3];