Navigation
API > API/Runtime > API/Runtime/Slate > API/Runtime/Slate/Widgets > API/Runtime/Slate/Widgets/Layout
Inheritance Hierarchy
References
| Module | Slate |
| Header | /Engine/Source/Runtime/Slate/Public/Widgets/Layout/SScaleBox.h |
| Include | #include "Widgets/Layout/SScaleBox.h" |
Syntax
class SScaleBox : public SCompoundWidget
Remarks
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.
Constructors
| Type | Name | Description | |
|---|---|---|---|
SScaleBox () |
Constructor |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~SScaleBox () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | ComputeContentScale
(
const FGeometry& PaintGeometry |
||
| void | Construct
(
const FArguments& InArgs |
||
| void | DebugSafeAreaUpdated
(
const FMargin& NewSafeZone, |
||
| bool | |||
| void | |||
| bool | |||
| void | |||
| void | SetContent
(
TSharedRef< SWidget > InContent |
See Content slot | |
| void | SetHAlign
(
EHorizontalAlignment HAlign |
See HAlign argument | |
| void | SetIgnoreInheritedScale
(
bool InIgnoreInheritedScale |
Set IgnoreInheritedScale argument | |
| void | SetOverrideScreenInformation
(
TOptional< FVector2D > InScreenSize |
||
| void | SetStretch
(
EStretch::Type InStretch |
See Stretch argument | |
| void | SetStretchDirection
(
EStretchDirection::Type InStretchDirection |
See StretchDirection argument | |
| void | SetUserSpecifiedScale
(
float InUserSpecifiedScale |
See UserSpecifiedScale argument | |
| void | SetVAlign
(
EVerticalAlignment VAlign |
See VAlign argument | |
| const FSlateWidgetClassData & |
Overridden from SWidget
| Type | Name | Description | |
|---|---|---|---|
| FVector2D | ComputeDesiredSize
(
float LayoutScaleMultiplier |
Compute the ideal size necessary to display this widget. | |
| bool | CustomPrepass
(
float LayoutScaleMultiplier |
||
| float | GetRelativeLayoutScale
(
int32 ChildIndex, |
What is the Child's scale relative to this widget. | |
| void | OnArrangeChildren
(
const FGeometry& AllottedGeometry, |
Compute the Geometry of all the children and add populate the ArrangedChildren list with their values. | |
| int32 | OnPaint
(
const FPaintArgs& Args, |
The widget should respond by populating the OutDrawElements array with FDrawElements that represent it and any of its children. |
Overridden from FSlateControlledConstruction
| Type | Name | Description | |
|---|---|---|---|
| const FSlateWidgetClassData & |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FArguments |
Typedefs
| Name | Description |
|---|---|
| PrivateParentType | |
| PrivateThisType | |
| Super | |
| ThisClass |
Deprecated Variables
| Type | Name | Description | |
|---|---|---|---|
| TSlateDeprecatedTAttribute< bool > | IgnoreInheritedScale | Direct access to IgnoreInheritedScale is now deprecated. Use the setter or getter. | |
| TSlateDeprecatedTAttribute< EStretch::Type > | Stretch | Direct access to Stretch is now deprecated. Use the setter or getter. | |
| TSlateDeprecatedTAttribute< EStretchDirection::Type > | StretchDirection | Direct access to StretchDirection is now deprecated. Use the setter or getter. | |
| TSlateDeprecatedTAttribute< float > | UserSpecifiedScale | Direct access to UserSpecifiedScale is now deprecated. Use the setter or getter. |