Derived from: public MView, public BView
Declared in: <HGroup.h> and <VGroup.h>
HGroup and VGroup are classes that are used to group other MView-derived classes together. An HGroup aligns all of its children in a horizontal row, while a VGroup aligns them in a vertical column. HGroups and VGroups can be nested to achieve a more complex layout.
HGroup(MView *kid, ...) HGroup(minimax size, MView *kid, ...) VGroup(MView *kid, ...) BGroup(minimax size, MView *kid, ...)
Adds all of the listed kids to the HGroup or VGroup. The list of MViews must be terminated with a NULL pointer.
The HGroup or VGroup will determine its own minimum and maximum size by querying all of the children for their minimum and maximum sizes, and adding them up.
For an HGroup, the size argument can be used to further constrain the vertical size of the HGroup.
For a VGroup, the size argument can be used to further constrain the horizontal size of the VGroup.
The size given will not cause any child-MViews to be compressed smaller than their minimum sizes.
virtual ~HGroup(); virtual ~VGroup()
Cleans up after the HGroup and VGroup.
Copyright © 1997 Marco Nelissen (marcone@xs4all.nl) All rights reserved.
Be is a registered trademark; BeOS, BeBox, BeWare, GeekPort, the Be logo, and the BeOS logo are trademarks of Be, Inc.