\labelsec:gmattributes The following options are used by the default geometry manager to determine the geometry of children widgets.
0
.
0
.
EZ_HORIZONTAL
Place children widgets
horizontally,
evenly spaced. Increase internal horizontal padding if
necessary.
EZ_HORIZONTAL_LEFT
Place children widgets
horizontally, starting at the left boundry. If the
horizontal dimension of a widget is larger than the
minimal size needed for placing children widgets, the
extra space is padded at the right side.
EZ_HORIZONTAL_RIGHT
Place children widgets
horizontally, ending exactly at the right boundry.
If the
horizontal dimension of a widget is larger than the
minimal size needed for placing children widgets, the
extra space is padded at the left side.
EZ_HORIZONTAL_CENTER
Place children widgets
horizontally. Do not alter the internal horizontal
padding.
If the
horizontal dimension of a widget is larger than the
minimal size needed for placing children widgets, the
extra space is distributed to the horizontal padding.
EZ_VERTICAL
Place children widgets vertically,
spaced evenly. Increase the internal vertical padding if
necessary.
EZ_VERTICAL_TOP
Place children widgets
vertically,
starting at the top boundry.
If the
vertical dimension of a widget is larger than the
minimal size needed for placing children widgets, the
extra space is padded at the bottom.
EZ_VERTICAL_BOTTOM
Place children widgets
vertically, ending exactly at the bottom boundry.
If the
vertical dimension of a widget is larger than the
minimal size needed for placing children widgets, the
extra space is padded at the top.
EZ_VERTICAL_CENTER
Place children widgets
vertically. Do not alter the internal vertical padding.
If the
vertical dimension of a widget is larger than the
minimal size needed for placing children widgets, the
extra space is distributed to the vertical padding.
EZ_TOP
If widget has a horizontal
orientation, align children widgets along the
top edge of widget.
It has no effects if widget has a vertical orientation.
EZ_BOTTOM
If widget has a horizontal orientation,
align children widgets along the bottom edge of widget.
It has no effects if widget has a vertical orientation.
EZ_LEFT
If widget has a vertical
orientation, align children widgets along the left
edge of widget.
It has no effects if widget has a horizontal orientation.
EZ_RIGHT
If widget has a vertical
orientation, align children widgets along the right
edge of widget.
It has no effects if widget has a horizontal orientation.
EZ_CENTER
Align children widgets along the
center
line of widget. This is the default.
EZ_FILL_NONE
No streching. This is the default.
EZ_FILL_HORIZONTALLY
Stretch children
widgets in the horizontal direction only.
EZ_FILL_VERTICALLY
Stretch children widgets
in the vertical direction only.
EZ_FILL_BOTH
Stretch children widgets
in both the horizontal and the vertical directions.
\subsectionOptions for Setting Attributes Used by the GridBag Geometry Manager \labelsec:gridbagattributes
gridX, gridY, xSpan, ySpan
.
fillMode
and gravity
.
Valid values for fillMode
are the same as that for
the configuration option EZ_FILL_NONE. Values for
gravity
are the same as that for the configuration option
EZ_LABEL_POSITION.
idx,minsize,weight,pad
.
idx is the index to the row to be configured,
starting at 0; minsize specifies the minimal
height of the row; weight specifies the weight
of the row. This field is used to determine how the extra
space, if any, be distributed among rows;
pad specifies the extra space to be added at the top and bottom
sides of the corresponding row.
rc,idx,minsize,weight,pad
. The rc
field takes values EZ_ROW
or EZ_COLUMN
, it
specifies the unit to configure. The rest of the field are
exactly the same as in above.