![]() |
Public API Reference |
#include <csbaglay.h>
Inheritance diagram for csGridBagConstraint:
Public Methods | |
csLayoutConstraint * | Clone () |
make a copy of this constraint. More... | |
Public Attributes | |
int | gridx |
gridx set column for next cell to add: RELATIVE ... More... | |
int | gridy |
gridx set row for next cell to aad: RELATIVE ... More... | |
int | gridwidth |
Set gridwidth to define the number of columns the cell spans. More... | |
int | gridheight |
Set gridheight to define the number of rows the cell spans. More... | |
float | weightx |
weightx defines how much space is added or substracted to a cell if the layout size changes. More... | |
float | weighty |
weighty defines how much space is added or substracted to a cell if the layout size changes. More... | |
int | anchor |
If you choose to not size the component to fit in a cell you can set the position of the component in a cell. More... | |
int | fill |
To size the component to fit in cell set fill to BOTH. More... | |
csRect | insets |
This adds additional space to the component width and height. More... | |
int | ipadx |
ipadx preserves ipadx pixels between component and cell left and right edges. More... | |
int | ipady |
ipady preserves ipady pixels between component and cell upper and lower edges. More... |
Definition at line 36 of file csbaglay.h.
|
make a copy of this constraint.
Reimplemented from csLayoutConstraint. |
|
If you choose to not size the component to fit in a cell you can set the position of the component in a cell.
Use the following values: CENTER ... center component in the middle of cell Definition at line 98 of file csbaglay.h. |
|
To size the component to fit in cell set fill to BOTH. This will scale the component vertical and horizontal. Set to HORIZONTAL or VERTICAL to scale component horizontal and vertical resp. To disallow scaling at all set to NONE. Definition at line 105 of file csbaglay.h. |
|
Set gridheight to define the number of rows the cell spans. Set to REMAINDER to be the last cell on a column. Definition at line 69 of file csbaglay.h. |
|
Set gridwidth to define the number of columns the cell spans. Set to REMAINDER to be the last cell on a row. Definition at line 64 of file csbaglay.h. |
|
gridx set column for next cell to add: RELATIVE ...
right behind last added Definition at line 52 of file csbaglay.h. |
|
gridx set row for next cell to aad: RELATIVE ...
same as last added or the next row if last gridwidth == REMAINDER Definition at line 59 of file csbaglay.h. |
|
This adds additional space to the component width and height.
Definition at line 109 of file csbaglay.h. |
|
ipadx preserves ipadx pixels between component and cell left and right edges.
Definition at line 114 of file csbaglay.h. |
|
ipady preserves ipady pixels between component and cell upper and lower edges.
Definition at line 119 of file csbaglay.h. |
|
weightx defines how much space is added or substracted to a cell if the layout size changes. Additional space is given columnwise. For this the largest weightx in a column is determined and used for all cells in the column. Definition at line 76 of file csbaglay.h. |
|
weighty defines how much space is added or substracted to a cell if the layout size changes. Additional space is given rowwise. For this the largest weighty in a row is determined and used for all cells in the row. Definition at line 83 of file csbaglay.h. |