Table of Contents

Enum Control.LayoutPreset

Namespace
Godot
Assembly
GodotSharp.dll
public enum Control.LayoutPreset : long

Fields

BottomLeft = 2

Snap all 4 anchors to the bottom-left of the parent control's bounds. Use with SetAnchorsPreset(LayoutPreset, bool).

BottomRight = 3

Snap all 4 anchors to the bottom-right of the parent control's bounds. Use with SetAnchorsPreset(LayoutPreset, bool).

BottomWide = 12

Snap 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 = 8

Snap all 4 anchors to the center of the parent control's bounds. Use with SetAnchorsPreset(LayoutPreset, bool).

CenterBottom = 7

Snap all 4 anchors to the center of the bottom edge of the parent control's bounds. Use with SetAnchorsPreset(LayoutPreset, bool).

CenterLeft = 4

Snap all 4 anchors to the center of the left edge of the parent control's bounds. Use with SetAnchorsPreset(LayoutPreset, bool).

CenterRight = 6

Snap all 4 anchors to the center of the right edge of the parent control's bounds. Use with SetAnchorsPreset(LayoutPreset, bool).

CenterTop = 5

Snap all 4 anchors to the center of the top edge of the parent control's bounds. Use with SetAnchorsPreset(LayoutPreset, bool).

FullRect = 15

Snap 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 = 14

Snap all 4 anchors to a horizontal line that cuts the parent control in half. Use with SetAnchorsPreset(LayoutPreset, bool).

LeftWide = 9

Snap 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 = 11

Snap 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 = 0

Snap all 4 anchors to the top-left of the parent control's bounds. Use with SetAnchorsPreset(LayoutPreset, bool).

TopRight = 1

Snap all 4 anchors to the top-right of the parent control's bounds. Use with SetAnchorsPreset(LayoutPreset, bool).

TopWide = 10

Snap 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 = 13

Snap all 4 anchors to a vertical line that cuts the parent control in half. Use with SetAnchorsPreset(LayoutPreset, bool).