Enum TextureRect.ExpandModeEnum
- Namespace
- Godot
- Assembly
- GodotSharp.dll
public enum TextureRect.ExpandModeEnum : long
Fields
FitHeight = 4
The width of the texture will be ignored. Minimum height will be equal to the current width. Useful for vertical layouts, e.g. inside VBoxContainer.
FitHeightProportional = 5
Same as FitHeight, but keeps texture's aspect ratio.
FitWidth = 2
The height of the texture will be ignored. Minimum width will be equal to the current height. Useful for horizontal layouts, e.g. inside HBoxContainer.
FitWidthProportional = 3
Same as FitWidth, but keeps texture's aspect ratio.
IgnoreSize = 1
The size of the texture won't be considered for minimum size calculation, so the TextureRect can be shrunk down past the texture size.
KeepSize = 0
The minimum size will be equal to texture size, i.e. TextureRect can't be smaller than the texture.