![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <BasicLayoutWidgetSlot.h>
Inheritance diagram for TResizingWidgetSlotMixin< MixedIntoType >:Classes | |
| struct | FSlotArgumentsMixin |
Public Member Functions | |
| TResizingWidgetSlotMixin () | |
| FSizeParam::ESizeRule | GetSizeRule () const |
| float | GetSizeValue () const |
| float | GetShrinkSizeValue () const |
| void | SetSizeParam (FSizeParam InSizeParam) |
| void | SetSizeToAuto () |
| void | SetSizeToStretch (TAttribute< float > InStretchCoefficient) |
| void | SetSizeToStretchContent (TAttribute< float > InStretchCoefficient, TAttribute< float > InShrinkStretchCoefficient=TAttribute< float >()) |
| float | GetMinSize () const |
| void | SetMinSize (TAttribute< float > InMinSize) |
| float | GetMaxSize () const |
| void | SetMaxSize (TAttribute< float > InMaxSize) |
Protected Types | |
| template<typename InObjectType > | |
| using | TSlateSlotAttribute = ::SlateAttributePrivate::TSlateContainedAttribute< InObjectType, ::SlateAttributePrivate::FSlateAttributeNoInvalidationReason, TSlateAttributeComparePredicate<> > |
Protected Member Functions | |
| void | ConstructMixin (const FChildren &SlotOwner, FSlotArgumentsMixin &&InArgs) |
Static Protected Member Functions | |
| static void | RegisterAttributesMixin (FSlateWidgetSlotAttributeInitializer &AttributeInitializer) |
Protected Attributes | |
| FSizeParam::ESizeRule | SizeRule |
| TSlateSlotAttribute< float > | SizeValue |
| TSlateSlotAttribute< float > | ShrinkSizeValue |
| TSlateSlotAttribute< float > | MinSize |
| TSlateSlotAttribute< float > | MaxSize |
Mixin to add resizing functionality to a base slot.
| protected |
|
inline |
|
inlineprotected |
|
inline |
Get the max size the slot can be.
|
inline |
Get the min size the slot can be.
|
inline |
Get the size parameter for the space rule, used when the slot size is shrinking below desired size. Used for size rule SizeRule_StretchContent.
|
inline |
Get the space rule this slot should occupy along panel's direction.
|
inline |
Get the size parameter for the space rule. Used for size rule SizeRule_Stretch and SizeRule_StretchContent.
|
inlinestaticprotected |
|
inline |
Set the max size in SlateUnit this slot can be.
|
inline |
Set the min size in SlateUnit this slot can be.
|
inline |
Set the size Param of the slot, It could be a FStretch, FStretchContent, or a FAuto.
|
inline |
The widget's DesiredSize will be used as the space required.
|
inline |
The available space will be distributed proportionately to each slots stretch coefficient. A slot with coefficient of 2 will get assigned twice as much available space as slot with coefficient 1.
| InStretchCoefficient | Stretch coefficient for this slot. |
|
inline |
The widget's content size is adjusted proportionally to fit the available space. The slots size starts at DesiredSize, and a slot with coefficient of 2 will get adjusted twice as much as slot with coefficient 1 to fit the available space.
| InStretchCoefficient | Stretch coefficient for this slot. |
| InShrinkStretchCoefficient | If specified, this stretch coefficient is used when the slots is shrinking below desired size. Otherwise InStretchCoefficient is used for both shrink and grow. |
|
protected |
The max size that this slot can be (0 if no max)
|
protected |
The min size that this slot can be
|
protected |
The actual value this size parameter stores, used for shrinking (negative if not defined, use SizeValue).
|
protected |
The sizing rule to use, see ESizeRule for more info how the different rules work.
|
protected |
The actual value this size parameter stores.