diff options
Diffstat (limited to 'beos/liblayout/MMenuBar.h')
-rw-r--r-- | beos/liblayout/MMenuBar.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/beos/liblayout/MMenuBar.h b/beos/liblayout/MMenuBar.h new file mode 100644 index 000000000..a5b061a19 --- /dev/null +++ b/beos/liblayout/MMenuBar.h @@ -0,0 +1,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 |