Navigation
API > API/Runtime > API/Runtime/Slate
| Name | EStretch::Type |
| Type | enum |
| Header File | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SScaleBox.h |
| Include Path | #include "Widgets/Layout/SScaleBox.h" |
Syntax
namespace EStretch
{
enum Type
{
None,
Fill,
ScaleToFit,
ScaleToFitX,
ScaleToFitY,
ScaleToFill,
ScaleBySafeZone,
UserSpecified,
UserSpecifiedWithClipping,
}
}
Values
| Name | Remarks |
|---|---|
| None | Does not scale the content. |
| Fill | Scales the content non-uniformly filling the entire space of the area. |
| ScaleToFit | Scales the content uniformly (preserving aspect ratio) until it can no longer scale the content without clipping it. |
| ScaleToFitX | Scales the content uniformly (preserving aspect ratio) until it can no longer scale the content without clipping it along the x-axis, the y-axis can/will be clipped. |
| ScaleToFitY | Scales the content uniformly (preserving aspect ratio) until it can no longer scale the content without clipping it along the y-axis, the x-axis can/will be clipped. |
| ScaleToFill | Scales the content uniformly (preserving aspect ratio), until all sides meet or exceed the size of the area. |
| ScaleBySafeZone | Scales the content according to the size of the safe zone currently applied to the viewport. |
| UserSpecified | Scales the content by the scale specified by the user. |
| UserSpecifiedWithClipping | Scales the content by the scale specified by the user and also clips. |