-
Notifications
You must be signed in to change notification settings - Fork 0
MarginContainer
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.MarginContainer |
| Namespace | Electron2D |
| Kind | class |
| Category | UI and Text |
Places direct child controls inside theme-defined margins.
public class Electron2D.MarginContainer : Electron2D.ContainerProfile: Electron2D 0.1.0 2D
Status: Supported / Parity verified
Out of profile: no
Godot reference: MarginContainer
UI container that insets direct child controls using theme margin constants.
Margins are read from margin_left, margin_top,
margin_right and margin_bottom theme constant overrides.
Missing margin constants default to zero.
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 |
|---|---|---|
Electron2D.MarginContainer() |
Constructor | Initializes a new instance of the Electron2D.MarginContainer type. |
_GetMinimumSize() |
Method | Gets the minimum size required by this margin container. |
Kind: Constructor
public Electron2D.MarginContainer()Initializes a new instance of the Electron2D.MarginContainer type.
The new container starts with zero margins until theme constants are overridden.
This constructor is not synchronized. Call it on the main scene thread.
This constructor is available since Electron2D 0.1.0 Preview.
Electron2D.Control.AddThemeConstantOverride(System.String,System.Int32)
Kind: Method
public Electron2D.Vector2 _GetMinimumSize()()Gets the minimum size required by this margin container.
Multiple child controls share the same inset rectangle.
The largest child minimum size plus horizontal and vertical margins.
This method is not synchronized. Call it on the main scene thread.
This method is available since Electron2D 0.1.0 Preview.
Electron2D.Container.FitChildInRect(Electron2D.Control,Electron2D.Rect2)
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.