Table of Contents

Enum Control.SizeFlags

Namespace
Godot
Assembly
GodotSharp.dll
[Flags]
public enum Control.SizeFlags : long

Fields

Expand = 2

Tells the parent Container to let this node take all the available space on the axis you flag. If multiple neighboring nodes are set to expand, they'll share the space based on their stretch ratio. See SizeFlagsStretchRatio. Use with SizeFlagsHorizontal and SizeFlagsVertical.

ExpandFill = Fill | Expand

Sets the node's size flags to both fill and expand. See Fill and Expand for more information.

Fill = 1

Tells the parent Container to expand the bounds of this node to fill all the available space without pushing any other node. It is mutually exclusive with shrink size flags. Use with SizeFlagsHorizontal and SizeFlagsVertical.

ShrinkBegin = 0

Tells the parent Container to align the node with its start, either the top or the left edge. It is mutually exclusive with Fill and other shrink size flags, but can be used with Expand in some containers. Use with SizeFlagsHorizontal and SizeFlagsVertical.

Note: Setting this flag is equal to not having any size flags.

ShrinkCenter = 4

Tells the parent Container to center the node in the available space. It is mutually exclusive with Fill and other shrink size flags, but can be used with Expand in some containers. Use with SizeFlagsHorizontal and SizeFlagsVertical.

ShrinkEnd = 8

Tells the parent Container to align the node with its end, either the bottom or the right edge. It is mutually exclusive with Fill and other shrink size flags, but can be used with Expand in some containers. Use with SizeFlagsHorizontal and SizeFlagsVertical.