Navigation
Unreal Engine C++ API Reference > Runtime > SlateCore > Types
Inheritance Hierarchy
- FSizeParam
- FAuto
- FStretch
- FStretchContent
References
Module | SlateCore |
Header | /Engine/Source/Runtime/SlateCore/Public/Types/SlateStructs.h |
Include | #include "Types/SlateStructs.h" |
Syntax
struct FSizeParam
Remarks
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
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TAttribute< float > | ShrinkValue | The actual value this size parameter stores, used for shrinking. |
![]() |
ESizeRule | SizeRule | The sizing rule to use. |
![]() |
TAttribute< float > | Value | The actual value this size parameter stores. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FSizeParam
(
ESizeRule InTypeOfSize, |
Hidden constructor. |
Enums
Type | Name | Description | |
---|---|---|---|
![]() |
ESizeRule |