Class GridContainer
A container that arranges its child controls in a grid layout.
- Inheritance
-
GridContainer
Remarks
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 Node2D.
See Also
Properties
columns
The number of columns in the GridContainer. If modified, GridContainer reorders its Control-derived children to accommodate the new layout.
var columns : int = 1
Property Value
Remarks
h_separation
Theme Property
The horizontal separation of child nodes.
= ``4``
Property Value
v_separation
Theme Property
The vertical separation of child nodes.
= ``4``