The Layout Library: MSplitter

Derived from: public MView, public BView

Declared in: <MSplitter.h>


Overview

An MSplitter is a control that can be placed between two controls or panels, and allows the seperation between those two controls or panels to be moved around. The splitter does this by adjusting the weight of its neighbours and rerunning the layout process. An MSplitter can be used as a vertical or horizontal splitter. It figures out how it should behave by checking whether it is embedded in an HGroup or a VGroup.
Currently, MSplitter cannot function properly when you place more than one of them in an HGroup or VGroup.


Constructor and Destructor


MSplitter()

    MSplitter()
    MSplitter(BMessage *archive)
Creates the MSplitter.

~MSplitter()

    virtual ~MSplitter()
Cleans up after the MSplitter.

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.


MouseDown()

    virtual void MouseDown(BPoint)
Starts an asynchronous thread that handles the resizing of neighbouring objects.


MouseMoved()

    virtual void MouseMoved(BPoint, ulong, const BMessage*)
Changes the mousecursor when over the MSplitter.