GridContainer
Inherits: Container < Control < CanvasItem < Entity < Object
Description
Section titled “Description”A container that arranges its child controls in a grid layout.
GridContainer arranges its child controls in a grid layout. The number of columns is specified by the columns property, whereas the number of rows depends on how many are needed for the child controls. The number of rows and columns is preserved for every size of the container.
Note: GridContainer only works with child nodes inheriting from Control. It won’t rearrange child nodes inheriting from Entity2D.
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| int | columns |
1 |
Theme items
Section titled “Theme items”h_separation
int h_separation (constant) = 4
v_separation
int v_separation (constant) = 4
Property descriptions
Section titled “Property descriptions”columns
int columns = 1
The number of columns in the GridContainer. If modified, GridContainer reorders its Control-derived children to accommodate the new layout.
