The Layout Library: MMenuBar

Derived from: public MView, public BMenuBar

Declared in: <MMenuBar.h>


Overview

MMenuBar is liblayout's version of BMenuBar. If you want to use it as a window-menu, e.g. as the uppermost item in your window, add M_NO_Y_LEFTOVERS to the flags.


Constructor and Destructor


MMenuBar()

    MMenuBar(menu_layout layout=B_ITEMS_IN_ROW)
    MMenuBar(BMessage*)
Creates an MMenuBar with the specified layout.

~MMenuBar()

    virtual ~MMenuBar()
Cleans up after the MMenuBar.

Static Functions


Instantiate()

    static BArchivable *Instantiate(BMessage *archive)
Not yet implemented.


Member Functions


Archive()

    virtual long Archive(BMessage *archive, bool deep=true) const
Not yet implemented.


AttachedToWindow()

    virtual void AttachedToWindow()
Implementation detail


DetachedFromWindow()

    virtual void DetachedFromWindow()
Implementation detail


reloadfont()

    virtual void reloadfont(BFont *font[])
Handles font-changes.