-
Notifications
You must be signed in to change notification settings - Fork 0
GridContainer
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.GridContainer |
| Namespace | Electron2D |
| Kind | class |
| Category | UI and Text |
Arranges direct child controls into rows and columns.
public class Electron2D.GridContainer : Electron2D.ContainerProfile: Electron2D 0.1.0 2D
Status: Supported / Parity verified
Out of profile: no
Godot reference: GridContainer
Row-major UI grid container with column count and theme separation constants.
GridContainer measures visible direct child controls in row-major
order. Each column takes the largest minimum width found in that column, and
each row takes the largest minimum height found in that row.
This type is not synchronized. Create and mutate it on the main scene thread.
This type is available since Electron2D 0.1.0 Preview.
Electron2D.Container
| Member | Kind | Summary |
|---|---|---|
Columns |
Property | Gets or sets the number of columns used by this grid. |
Electron2D.GridContainer() |
Constructor | Initializes a new instance of the Electron2D.GridContainer type. |
_GetMinimumSize() |
Method | Gets the minimum size required by this grid container. |
Kind: Property
public System.Int32 Columns { get; set; }Gets or sets the number of columns used by this grid.
Children are assigned to cells in row-major order.
The positive column count. The default is 1.
-
System.ArgumentOutOfRangeException: Thrown when the value is less than or equal to zero.
This property is not synchronized. Mutate it on the main scene thread.
This property is available since Electron2D 0.1.0 Preview.
Electron2D.Container.QueueSort
Kind: Constructor
public Electron2D.GridContainer()Initializes a new instance of the Electron2D.GridContainer type.
The new grid starts with one column.
This constructor is not synchronized. Call it on the main scene thread.
This constructor is available since Electron2D 0.1.0 Preview.
Electron2D.GridContainer.Columns
Kind: Method
public Electron2D.Vector2 _GetMinimumSize()()Gets the minimum size required by this grid container.
Horizontal and vertical separation are read from h_separation and
v_separation theme constants.
The minimum size produced by row and column measurements.
This method is not synchronized. Call it on the main scene thread.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.GridContainer.Columns
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.