-
Notifications
You must be signed in to change notification settings - Fork 0
SizeFlags
Home | API by Category | Complete API Index | API Compatibility
| Field | Value |
|---|---|
| Full name | Electron2D.SizeFlags |
| Namespace | Electron2D |
| Kind | enum |
| Category | UI and Text |
Describes how a Electron2D.Control uses space allocated by a parent Electron2D.Container.
public enum Electron2D.SizeFlags : System.IComparable, System.IConvertible, System.IFormattable, System.ISpanFormattableProfile: Electron2D 0.1.0 2D
Status: Supported / Parity verified
Out of profile: no
Godot reference: Control.SizeFlags
Layout flags used by containers for shrink, fill, expand, expand-fill and centered/end placement.
The expansion and fill values can be combined. Containers use them to decide whether a child fills its allocated slot, receives extra space, or stays near a particular side of that slot.
This enum is available since Electron2D 0.1.0 Preview.
Electron2D.Control.SizeFlagsHorizontalElectron2D.Control.SizeFlagsVertical
| Member | Kind | Summary |
|---|---|---|
Expand |
Enum value | The control receives a share of extra space on the relevant axis. |
ExpandFill |
Enum value | The control expands and fills the allocated slot on the relevant axis. |
Fill |
Enum value | The control fills the allocated slot on the relevant axis. |
ShrinkBegin |
Enum value | The control keeps its minimum size and is placed at the beginning of the allocated slot. |
ShrinkCenter |
Enum value | The control keeps its minimum size and is centered inside the allocated slot. |
ShrinkEnd |
Enum value | The control keeps its minimum size and is placed at the end of the allocated slot. |
Kind: Enum value
public const Electron2D.SizeFlags ExpandThe control receives a share of extra space on the relevant axis.
The share is weighted by Electron2D.Control.SizeFlagsStretchRatio.
This flag does not imply that the child fills its final slot.
This enum value is available since Electron2D 0.1.0 Preview.
Kind: Enum value
public const Electron2D.SizeFlags ExpandFillThe control expands and fills the allocated slot on the relevant axis.
This value is equivalent to combining Electron2D.SizeFlags.Expand with
Electron2D.SizeFlags.Fill.
This enum value is available since Electron2D 0.1.0 Preview.
Kind: Enum value
public const Electron2D.SizeFlags FillThe control fills the allocated slot on the relevant axis.
Use this value when a child should stretch to the full slot size after the parent container has decided the slot rectangle.
This enum value is available since Electron2D 0.1.0 Preview.
Kind: Enum value
public const Electron2D.SizeFlags ShrinkBeginThe control keeps its minimum size and is placed at the beginning of the allocated slot.
This is the neutral shrink value for the relevant axis.
This enum value is available since Electron2D 0.1.0 Preview.
Kind: Enum value
public const Electron2D.SizeFlags ShrinkCenterThe control keeps its minimum size and is centered inside the allocated slot.
This flag is considered only when the child is not filling the slot on the relevant axis.
This enum value is available since Electron2D 0.1.0 Preview.
Kind: Enum value
public const Electron2D.SizeFlags ShrinkEndThe control keeps its minimum size and is placed at the end of the allocated slot.
This flag is considered only when the child is not filling the slot on the relevant axis.
This enum value is available since Electron2D 0.1.0 Preview.
Electron2D 0.1.0 Preview API reference. Generated from 175 public runtime types.