n.pero@mi.flashnet.it
)Date: Generated at 2023-12-22 15:07:59 -0500
The GSHbox class (a GNU extension)
Copyright: (C) 1999-2010 Free Software Foundation, Inc.
- Declared in:
- GNUstepGUI/GSHbox.h
Pack views in the GSHbox. Don't use the corresponding methods of GSTable, which are far more general and far more complicate. If you need to do that, use GSTable instead.
Add a view to the box, enabling X Resizing only if
flag is YES
, and a MinXMargin
aMargin. If aFlag is
YES
the [view and its margins] should
be resized in the horizontal direction when the GSHbox
is resized in the horizontal direction. If
aFlag is NO
the view is
never X-resized and always left in its original
width. The default is YES
.
The min X margin is used to separate the view from the preceding one. The first view added to the box has no min X margin; if you try setting one for it, it is ignored (zero is used instead).
When views are added to the GSHbox, it might happen that some of the added views have a greater height than others. When this happens, the GSHbox resizes all the views to the highest height. As usual, each view is resized with its margins; the effect of the resizing on each view is determined by the autoresizing mask of the view. The classical options are
(you may need to OR these masks with the mask you use in the horizontal direction, if you use any).
With a GSHbox, only one margin is set when you add views to the GSHbox: the margin between each view and the preceding one. Exception: the first view is special, and has no margin set (it has no preceding view to be separated from). Space above or below the view may result if the view is shorter, in the vertical direction, than the other views in the GSHbox; in that case the view is resized to fit vertically, according to its autoresizingMask. By changing the autoresizingMask you may decide whether the space should go to the view or to its vertical margins; this for example lets you center vertically or flush up/down your view.