Enum Control.LayoutPreset
- Namespace
- Godot
- Assembly
- GodotSharp.dll
public enum Control.LayoutPreset : long
Fields
BottomLeft = 2Snap all 4 anchors to the bottom-left of the parent control's bounds. Use with SetAnchorsPreset(LayoutPreset, bool).
BottomRight = 3Snap all 4 anchors to the bottom-right of the parent control's bounds. Use with SetAnchorsPreset(LayoutPreset, bool).
BottomWide = 12Snap all 4 anchors to the bottom edge of the parent control. The left offset becomes relative to the bottom left corner, the bottom offset relative to the bottom edge, and the right offset relative to the bottom right corner of the node's parent. Use with SetAnchorsPreset(LayoutPreset, bool).
Center = 8Snap all 4 anchors to the center of the parent control's bounds. Use with SetAnchorsPreset(LayoutPreset, bool).
CenterBottom = 7Snap all 4 anchors to the center of the bottom edge of the parent control's bounds. Use with SetAnchorsPreset(LayoutPreset, bool).
CenterLeft = 4Snap all 4 anchors to the center of the left edge of the parent control's bounds. Use with SetAnchorsPreset(LayoutPreset, bool).
CenterRight = 6Snap all 4 anchors to the center of the right edge of the parent control's bounds. Use with SetAnchorsPreset(LayoutPreset, bool).
CenterTop = 5Snap all 4 anchors to the center of the top edge of the parent control's bounds. Use with SetAnchorsPreset(LayoutPreset, bool).
FullRect = 15Snap all 4 anchors to the respective corners of the parent control. Set all 4 offsets to 0 after you applied this preset and the Control will fit its parent control. Use with SetAnchorsPreset(LayoutPreset, bool).
HcenterWide = 14Snap all 4 anchors to a horizontal line that cuts the parent control in half. Use with SetAnchorsPreset(LayoutPreset, bool).
LeftWide = 9Snap all 4 anchors to the left edge of the parent control. The left offset becomes relative to the left edge and the top offset relative to the top left corner of the node's parent. Use with SetAnchorsPreset(LayoutPreset, bool).
RightWide = 11Snap all 4 anchors to the right edge of the parent control. The right offset becomes relative to the right edge and the top offset relative to the top right corner of the node's parent. Use with SetAnchorsPreset(LayoutPreset, bool).
TopLeft = 0Snap all 4 anchors to the top-left of the parent control's bounds. Use with SetAnchorsPreset(LayoutPreset, bool).
TopRight = 1Snap all 4 anchors to the top-right of the parent control's bounds. Use with SetAnchorsPreset(LayoutPreset, bool).
TopWide = 10Snap all 4 anchors to the top edge of the parent control. The left offset becomes relative to the top left corner, the top offset relative to the top edge, and the right offset relative to the top right corner of the node's parent. Use with SetAnchorsPreset(LayoutPreset, bool).
VcenterWide = 13Snap all 4 anchors to a vertical line that cuts the parent control in half. Use with SetAnchorsPreset(LayoutPreset, bool).