Table of Contents

Enum AspectRatioContainer.StretchModeEnum

Namespace
Godot
Assembly
GodotSharp.dll
public enum AspectRatioContainer.StretchModeEnum : long

Fields

Cover = 3

The width and height of child controls is automatically adjusted to make their bounding rectangle cover the entire area of the container while keeping the aspect ratio.

When the bounding rectangle of child controls exceed the container's size and ClipContents is enabled, this allows to show only the container's area restricted by its own bounding rectangle.

Fit = 2

The bounding rectangle of child controls is automatically adjusted to fit inside the container while keeping the aspect ratio.

HeightControlsWidth = 1

The width of child controls is automatically adjusted based on the height of the container.

WidthControlsHeight = 0

The height of child controls is automatically adjusted based on the width of the container.