summaryrefslogtreecommitdiffstats
path: root/beos/liblayout/MMenuBar.h
blob: a5b061a19c8744ba50c501e96b5c3eac717f2a70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

#ifndef _MMENUBAR_H
#define _MMENUBAR_H

#include "layout.h"
#include <MenuBar.h>

#if __POWERPC__
#pragma simple_class_byval off
#endif

class IMPEXPLIBLAYOUT MMenuBar: public MView, public BMenuBar
{
	public:
		MMenuBar(menu_layout layout=B_ITEMS_IN_ROW);
		MMenuBar(menu_layout layout, bool resizetofit);
		MMenuBar(BMessage*);
		virtual ~MMenuBar();
		virtual long Archive(BMessage *archive, bool deep=true) const;
		static BArchivable *Instantiate(BMessage *archive);
		
		virtual minimax layoutprefs();
		virtual BRect layout(BRect);
		virtual void	reloadfont(BFont *font[]);
		virtual void AttachedToWindow();
		virtual void DetachedFromWindow();
	private:
		virtual void _expansionmmenubar1();
		virtual void _expansionmmenubar2();

		uint32  _expansiondata[2];
};
#endif