The Layout Library: MBorder

Derived from: public MGroup, public BView

Declared in: <MBorder.h>


Overview

MBorder is class that is used to draw various kinds of borders around other classes.


Constructor and Destructor


MBorder()

    MBorder(ulong border_type,ulong spacing,char *name=NULL,MView *kid=NULL)
    MBorder(BMessage*)
Initializes an MBorder of type border_type, whose child will be inset spacing pixels on all sides, whose label (if any) is name, and which will contain the single MView kid.
The defined border types are When the type is M_LABELED_BORDER, the default is to also take the size of the label into account when calculating the minimum size of the MBorder, and make sure that the entire label is always visible. This is done by including M_SHOW_FULL_LABEL in the flags. If you don't mind the label being truncated when the MBorder is resized, you can unset this bit in the flags. The minimum size will then be calculated only from its child-MView.

~MBorder()

    ~MBorder()
Cleans up after the MBorder

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


FrameResized()

    virtual void FrameResized(float width, float height)
Calls the MBorder's layout() function. FrameResized is only called when the MBorder is set to receive frame-events, which should only be done if you use it in a non-MWindow window.


Label()

    char *Label()
Returns the MBorder's label.


SetHighlight()

    void SetHighlight(int)
---====[[[[]]]]====----


SetLabel()

    void SetLabel(char *)
Sets the MBorder's label.


Copyright © 1997 Marco Nelissen (marcone@xs4all.nl) All rights reserved.

Be, BeOS, BeBox, BeWare, GeekPort, the Be logo, the BeOS logo, roColour, Beatware and Beatware painter are trademarks or registered trademarks of their respective owners.