Navigation
API > API/Runtime > API/Runtime/SlateCore
Base structure for size parameters.
Describes a way in which a parent widget allocates available space to its child widgets.
When SizeRule is SizeRule_Auto, the required space is the widget's DesiredSize. When SizeRule is SizeRule_Stretch, the required space is the available space distributed proportionately between peer Widgets. When SizeRule is SizeRule_StretchContent, the required space is widget's content size adjusted proportionally to fit the available space.
Available space is space remaining after all the peers' SizeRule_Auto requirements have been satisfied. The available space is distributed proportionally between the peer widgets depending on the Value property.
FSizeParam cannot be constructed directly - see FStretch, FStretchContent, FAuto, and FAspectRatio
| Name | FSizeParam |
| Type | struct |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Types/SlateStructs.h |
| Include Path | #include "Types/SlateStructs.h" |
Syntax
struct FSizeParam
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSizeParam
(
ESizeRule InTypeOfSize, |
Hidden constructor. | Types/SlateStructs.h |
Enums
Public
| Name | Remarks |
|---|---|
| ESizeRule |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ShrinkValue | TAttribute< float > | The actual value this size parameter stores, used for shrinking. | Types/SlateStructs.h | |
| SizeRule | ESizeRule | The sizing rule to use. | Types/SlateStructs.h | |
| Value | TAttribute< float > | The actual value this size parameter stores. | Types/SlateStructs.h |