-
Notifications
You must be signed in to change notification settings - Fork 0
CenterContainer
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.CenterContainer |
| Namespace | Electron2D |
| Kind | class |
| Category | UI and Text |
Places direct child controls around the center of this container.
public class Electron2D.CenterContainer : Electron2D.ContainerProfile: Electron2D 0.1.0 2D
Status: Supported / Parity verified
Out of profile: no
Godot reference: CenterContainer
UI container that keeps direct child controls at minimum size and positions them around the center.
CenterContainer keeps child controls at their combined minimum size.
It does not stretch children to the full container rectangle.
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 |
|---|---|---|
UseTopLeft |
Property | Gets or sets whether the child top-left corner is placed at the center. |
Electron2D.CenterContainer() |
Constructor | Initializes a new instance of the Electron2D.CenterContainer type. |
_GetMinimumSize() |
Method | Gets the minimum size required by this center container. |
Kind: Property
public System.Boolean UseTopLeft { get; set; }Gets or sets whether the child top-left corner is placed at the center.
This property affects all direct child controls on the next layout pass.
true to place child top-left corners at the center point;
otherwise, false to center full child rectangles.
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.CenterContainer()Initializes a new instance of the Electron2D.CenterContainer type.
The new container centers child rectangles by their full size until
Electron2D.CenterContainer.UseTopLeft is enabled.
This constructor is not synchronized. Call it on the main scene thread.
This constructor is available since Electron2D 0.1.0 Preview.
Electron2D.CenterContainer.UseTopLeft
Kind: Method
public Electron2D.Vector2 _GetMinimumSize()()Gets the minimum size required by this center container.
Centering does not add padding or separation.
The largest combined minimum size among direct child controls.
This method is not synchronized. Call it on the main scene thread.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.CenterContainer.UseTopLeft
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.