csGridBagConstraint Class Reference
[Layouting]
Subclass of csLayoutConstraint for use with csGridBagLayout.
More...
#include <csws/csbaglay.h>
Inheritance diagram for csGridBagConstraint:

Public Member Functions | |
csLayoutConstraint * | Clone () |
make a copy of this constraint | |
Public Attributes | |
int | gridx |
gridx set column for next cell to add: RELATIVE ... | |
int | gridy |
gridx set row for next cell to aad: RELATIVE ... | |
int | gridwidth |
Set gridwidth to define the number of columns the cell spans. | |
int | gridheight |
Set gridheight to define the number of rows the cell spans. | |
float | weightx |
weightx defines how much space is added or substracted to a cell if the layout size changes. | |
float | weighty |
weighty defines how much space is added or substracted to a cell if the layout size changes. | |
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. | |
int | fill |
To size the component to fit in cell set fill to BOTH. | |
csRect | insets |
This adds additional space to the component width and height. | |
int | ipadx |
ipadx preserves ipadx pixels between component and cell left and right edges. | |
int | ipady |
ipady preserves ipady pixels between component and cell upper and lower edges. |
Detailed Description
Subclass of csLayoutConstraint for use with csGridBagLayout.
Definition at line 38 of file csbaglay.h.
Member Function Documentation
|
make a copy of this constraint
Reimplemented from csLayoutConstraint. |
Member Data Documentation
|
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 100 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 107 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 71 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 66 of file csbaglay.h. |
|
gridx set column for next cell to add: RELATIVE ...
right behind last added Definition at line 54 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 61 of file csbaglay.h. |
|
This adds additional space to the component width and height.
Definition at line 111 of file csbaglay.h. |
|
ipadx preserves ipadx pixels between component and cell left and right edges.
Definition at line 116 of file csbaglay.h. |
|
ipady preserves ipady pixels between component and cell upper and lower edges.
Definition at line 121 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 78 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 85 of file csbaglay.h. |
The documentation for this class was generated from the following file:
- csws/csbaglay.h
Generated for Crystal Space by doxygen 1.3.9.1