GridContainer

Inherits:Container<Control<CanvasItem<Node<Object

A container that arranges its child controls in a grid layout.

Description

GridContainer arranges its child controls in a grid layout. The number of columns is specified by thecolumns 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 fromControl. It won't rearrange child nodes inheriting fromNode2D.

Tutorials

Properties

int

columns

1

Theme Properties

int

h_separation

4

int

v_separation

4


Property Descriptions

intcolumns =1🔗

The number of columns in theGridContainer. If modified,GridContainer reorders its Control-derived children to accommodate the new layout.


Theme Property Descriptions

inth_separation =4🔗

The horizontal separation of child nodes.


intv_separation =4🔗

The vertical separation of child nodes.


User-contributed notes

Please read theUser-contributed notes policy before submitting a comment.