Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git] / guicast / bcmenubar.h
blobabaa0ea1f01b0537c6aba4acf6617e0fd9e120b1
1 #ifndef BCMENUBAR_H
2 #define BCMENUBAR_H
4 #include "bcmenu.inc"
5 #include "bcmenubar.inc"
6 #include "bcpixmap.inc"
7 #include "bcsubwindow.h"
9 class BC_MenuBar : public BC_SubWindow
11 public:
12 BC_MenuBar(int x, int y, int w);
13 virtual ~BC_MenuBar();
15 friend class BC_Menu;
17 int add_menu(BC_Menu* menu);
18 static int calculate_height(BC_WindowBase *window);
20 int initialize();
21 int focus_out_event();
22 int keypress_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();
30 int deactivate();
31 int unhighlight();
32 // Redraws items in active menu
33 void draw_items();
35 private:
36 int draw_face();
37 int activate();
38 // Array of menu titles
39 ArrayList<BC_Menu*> menu_titles;
40 // number of button releases since activation
41 int button_releases;
42 // When a menu is pulled down
43 int active;
44 BC_Pixmap *menu_bar_bg;
45 BC_Pixmap *menu_title_bg[3];
52 #endif
54 // Local Variables:
55 // mode: C++
56 // c-file-style: "linux"
57 // End: