Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Widgets/Layout/SScaleBox.h |
Include |
#include "Widgets/Layout/SScaleBox.h" |
class SScaleBox : public SCompoundWidget
Allows you to place content with a desired size and have it scale to meet the constraints placed on this box's alloted area. If you needed to have a background image scale to fill an area but not become distorted with different aspect ratios, or if you need to auto fit some text to an area, this is the control for you.
Name | Description | ||
---|---|---|---|
|
TOptional< floa... |
ComputedContentScale |
|
|
TAttribute< boo... |
IgnoreInheritedScale |
Optional bool to ignore the inherited scale |
|
LastAllocatedArea |
||
|
LastFinalOffset |
||
|
LastPaintGeometry |
||
|
LastSlotWidgetDesiredSize |
||
|
NormalizedContentDesiredSize |
||
|
OnSafeFrameChangedHandle |
Delegate handle to unhook the safe frame changed. |
|
|
OverrideScreenSize |
||
|
float |
SafeZoneScale |
Computed scale when scaled by safe zone padding |
|
TAttribute< ESt... |
Stretch |
The method of scaling that is applied to the content. |
|
TAttribute< ESt... |
StretchDirection |
The allowed direction of stretching of the content |
|
TAttribute< flo... |
UserSpecifiedScale |
Optional scale that can be specified by the User |
Name | Description | |
---|---|---|
|
SScaleBox() |
Constructor |
Name | Description | |
---|---|---|
|
~SScaleBox() |
Name | Description | ||
---|---|---|---|
|
float |
ComputeContentScale ( |
|
|
Construct ( |
||
|
DebugSafeAreaUpdated |
||
|
DoesScaleRequireNormalizingPrepassOrLocalGeometry() |
||
|
IsDesiredSizeDependentOnAreaAndScale() |
||
|
RefreshSafeZoneScale() |
||
|
SetContent ( |
See Content slot |
|
|
SetHAlign ( |
See HAlign argument |
|
|
SetIgnoreInheritedScale ( |
Set IgnoreInheritedScale argument |
|
|
SetOverrideScreenInformation |
||
|
SetStretch ( |
See Stretch argument |
|
|
SetStretchDirection ( |
See StretchDirection argument |
|
|
SetUserSpecifiedScale ( |
See UserSpecifiedScale argument |
|
|
SetVAlign ( |
See VAlign argument |
Name | Description | ||
---|---|---|---|
|
ComputeDesiredSize ( |
Compute the ideal size necessary to display this widget. |
|
|
CustomPrepass ( |
||
|
float |
GetRelativeLayoutScale ( |
What is the Child's scale relative to this widget. |
|
OnArrangeChildren ( |
Compute the Geometry of all the children and add populate the ArrangedChildren list with their values. |
|
|
OnPaint ( |
The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. |
Name |
Description |
|
---|---|---|
|
FArguments |