unreal.Stretch

class unreal.Stretch

Bases: EnumBase

EStretch

C++ Source:

  • Module: Slate

  • File: SScaleBox.h

FILL: Stretch

Scales the content non-uniformly filling the entire space of the area.

Type:

1

NONE: Stretch

Does not scale the content.

Type:

0

SCALE_BY_SAFE_ZONE: Stretch

Scales the content according to the size of the safe zone currently applied to the viewport.

Type:

6

SCALE_TO_FILL: Stretch

Scales the content uniformly (preserving aspect ratio), until all sides meet or exceed the size of the area. Will result in clipping the longer side.

Type:

5

SCALE_TO_FIT: Stretch

Scales the content uniformly (preserving aspect ratio) until it can no longer scale the content without clipping it.

Type:

2

SCALE_TO_FIT_X: Stretch

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.

Type:

3

SCALE_TO_FIT_Y: Stretch

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.

Type:

4

USER_SPECIFIED: Stretch

Scales the content by the scale specified by the user.

Type:

7

USER_SPECIFIED_WITH_CLIPPING: Stretch

Scales the content by the scale specified by the user and also clips.

Type:

8