UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TResizingWidgetSlotMixin< MixedIntoType > Class Template Reference

#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< floatSizeValue
 
TSlateSlotAttribute< floatShrinkSizeValue
 
TSlateSlotAttribute< floatMinSize
 
TSlateSlotAttribute< floatMaxSize
 

Detailed Description

template<typename MixedIntoType>
class TResizingWidgetSlotMixin< MixedIntoType >

Mixin to add resizing functionality to a base slot.

Member Typedef Documentation

◆ TSlateSlotAttribute

Constructor & Destructor Documentation

◆ TResizingWidgetSlotMixin()

Member Function Documentation

◆ ConstructMixin()

template<typename MixedIntoType >
void TResizingWidgetSlotMixin< MixedIntoType >::ConstructMixin ( const FChildren SlotOwner,
FSlotArgumentsMixin &&  InArgs 
)
inlineprotected

◆ GetMaxSize()

template<typename MixedIntoType >
float TResizingWidgetSlotMixin< MixedIntoType >::GetMaxSize ( ) const
inline

Get the max size the slot can be.

◆ GetMinSize()

template<typename MixedIntoType >
float TResizingWidgetSlotMixin< MixedIntoType >::GetMinSize ( ) const
inline

Get the min size the slot can be.

◆ GetShrinkSizeValue()

template<typename MixedIntoType >
float TResizingWidgetSlotMixin< MixedIntoType >::GetShrinkSizeValue ( ) const
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.

◆ GetSizeRule()

Get the space rule this slot should occupy along panel's direction.

◆ GetSizeValue()

template<typename MixedIntoType >
float TResizingWidgetSlotMixin< MixedIntoType >::GetSizeValue ( ) const
inline

Get the size parameter for the space rule. Used for size rule SizeRule_Stretch and SizeRule_StretchContent.

◆ RegisterAttributesMixin()

template<typename MixedIntoType >
static void TResizingWidgetSlotMixin< MixedIntoType >::RegisterAttributesMixin ( FSlateWidgetSlotAttributeInitializer AttributeInitializer)
inlinestaticprotected

◆ SetMaxSize()

template<typename MixedIntoType >
void TResizingWidgetSlotMixin< MixedIntoType >::SetMaxSize ( TAttribute< float InMaxSize)
inline

Set the max size in SlateUnit this slot can be.

◆ SetMinSize()

template<typename MixedIntoType >
void TResizingWidgetSlotMixin< MixedIntoType >::SetMinSize ( TAttribute< float InMinSize)
inline

Set the min size in SlateUnit this slot can be.

◆ SetSizeParam()

template<typename MixedIntoType >
void TResizingWidgetSlotMixin< MixedIntoType >::SetSizeParam ( FSizeParam  InSizeParam)
inline

Set the size Param of the slot, It could be a FStretch, FStretchContent, or a FAuto.

◆ SetSizeToAuto()

template<typename MixedIntoType >
void TResizingWidgetSlotMixin< MixedIntoType >::SetSizeToAuto ( )
inline

The widget's DesiredSize will be used as the space required.

◆ SetSizeToStretch()

template<typename MixedIntoType >
void TResizingWidgetSlotMixin< MixedIntoType >::SetSizeToStretch ( TAttribute< float InStretchCoefficient)
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.

Parameters
InStretchCoefficientStretch coefficient for this slot.

◆ SetSizeToStretchContent()

template<typename MixedIntoType >
void TResizingWidgetSlotMixin< MixedIntoType >::SetSizeToStretchContent ( TAttribute< float InStretchCoefficient,
TAttribute< float InShrinkStretchCoefficient = TAttribute<float>() 
)
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.

Parameters
InStretchCoefficientStretch coefficient for this slot.
InShrinkStretchCoefficientIf specified, this stretch coefficient is used when the slots is shrinking below desired size. Otherwise InStretchCoefficient is used for both shrink and grow.

Member Data Documentation

◆ MaxSize

The max size that this slot can be (0 if no max)

◆ MinSize

The min size that this slot can be

◆ ShrinkSizeValue

The actual value this size parameter stores, used for shrinking (negative if not defined, use SizeValue).

◆ SizeRule

The sizing rule to use, see ESizeRule for more info how the different rules work.

◆ SizeValue

The actual value this size parameter stores.


The documentation for this class was generated from the following file: