UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SHorizontalBox::FSlot Class Reference

#include <SBoxPanel.h>

+ Inheritance diagram for SHorizontalBox::FSlot:

Public Member Functions

FSlotArgumentsAutoWidth ()
 
FSlotArgumentsFillWidth (TAttribute< float > InStretchCoefficient)
 
FSlotArgumentsFillContentWidth (TAttribute< float > InStretchCoefficient, TAttribute< float > InShrinkStretchCoefficient=TAttribute< float >())
 
FSlotArgumentsMinWidth (TAttribute< float > InMinWidth)
 
FSlotArgumentsMaxWidth (TAttribute< float > InMaxWidth)
 
void SetAutoWidth ()
 
void SetFillWidth (TAttribute< float > InStretchCoefficient)
 
void SetFillContentWidth (TAttribute< float > InStretchCoefficient, TAttribute< float > InShrinkStretchCoefficient=TAttribute< float >())
 
void SetMinWidth (TAttribute< float > InMinWidth)
 
void SetMaxWidth (TAttribute< float > InMaxWidth)
 
void Construct (const FChildren &SlotOwner, FSlotArguments &&InArgs)
 
- Public Member Functions inherited from SBoxPanel::TSlot< FSlot >
 SLATE_SLOT_BEGIN_ARGS_OneMixin (TSlot, TBasicLayoutWidgetSlot< FSlot >, TResizingWidgetSlotMixin< FSlot >) protected
 
void Construct (const FChildren &SlotOwner, FSlotArguments &&InArgs)
 
- Public Member Functions inherited from TBasicLayoutWidgetSlot< SlotType >
 TBasicLayoutWidgetSlot ()
 
 TBasicLayoutWidgetSlot (FChildren &InOwner)
 
 TBasicLayoutWidgetSlot (const EHorizontalAlignment InHAlign, const EVerticalAlignment InVAlign)
 
 TBasicLayoutWidgetSlot (FChildren &InOwner, const EHorizontalAlignment InHAlign, const EVerticalAlignment InVAlign)
 
 SLATE_SLOT_BEGIN_ARGS_TwoMixins (TBasicLayoutWidgetSlot, TSlotBase< SlotType >, TPaddingWidgetSlotMixin< SlotType >, TAlignmentWidgetSlotMixin< SlotType >) void Construct(const FChildren &SlotOwner
 
 TPaddingWidgetSlotMixin (SlotOwner, MoveTemp(InArgs))
 
 TAlignmentWidgetSlotMixin (SlotOwner, MoveTemp(InArgs))
 
- Public Member Functions inherited from TWidgetSlotWithAttributeSupport< SlotType >
virtual ~TWidgetSlotWithAttributeSupport ()
 
void Construct (const FChildren &SlotOwner, typename Super::FSlotArguments &&InArgs)
 
void RequestSortAttribute ()
 
virtual SWidgetGetContainerWidget () const override
 
virtual FName GetContainerName () const override
 
virtual uint32 GetContainerSortOrder () const override
 
- Public Member Functions inherited from TSlotBase< SlotType >
SlotType & operator[] (TSharedRef< SWidget > &&InChildWidget)
 
SlotType & operator[] (const TSharedRef< SWidget > &InChildWidget)
 
SlotType & Expose (SlotType *&OutVarToInit)
 
void Construct (const FChildren &SlotOwner, FSlotArguments &&InArgs)
 
SLATECORE_API FSlotBase ()
 
SLATECORE_API FSlotBase (const FChildren &InParent)
 
SLATECORE_API FSlotBase (const TSharedRef< SWidget > &InWidget)
 
 FSlotBase (const FSlotBase &)=delete
 
- Public Member Functions inherited from FSlotBase
SLATECORE_API FSlotBase ()
 
SLATECORE_API FSlotBase (const FChildren &InParent)
 
SLATECORE_API FSlotBase (const TSharedRef< SWidget > &InWidget)
 
FSlotBaseoperator= (const FSlotBase &)=delete
 
 FSlotBase (const FSlotBase &)=delete
 
virtual SLATECORE_API ~FSlotBase ()
 
const FChildrenGetOwner () const
 
SLATECORE_API SWidgetGetOwnerWidget () const
 
SLATECORE_API void SetOwner (const FChildren &Children)
 
void AttachWidget (TSharedRef< SWidget > &&InWidget)
 
void AttachWidget (const TSharedRef< SWidget > &InWidget)
 
const TSharedRef< SWidget > & GetWidget () const
 
SLATECORE_API const TSharedPtr< SWidgetDetachWidget ()
 
SLATECORE_API void Invalidate (EInvalidateWidgetReason InvalidateReason)
 
- Public Member Functions inherited from TPaddingWidgetSlotMixin< SlotType >
 TPaddingWidgetSlotMixin ()
 
 TPaddingWidgetSlotMixin (const FMargin &Margin)
 
void SetPadding (TAttribute< FMargin > InPadding)
 
FMargin GetPadding () const
 
- Public Member Functions inherited from TAlignmentWidgetSlotMixin< SlotType >
 TAlignmentWidgetSlotMixin ()
 
 TAlignmentWidgetSlotMixin (const EHorizontalAlignment InHAlign, const EVerticalAlignment InVAlign)
 
void SetHorizontalAlignment (EHorizontalAlignment Alignment)
 
EHorizontalAlignment GetHorizontalAlignment () const
 
void SetVerticalAlignment (EVerticalAlignment Alignment)
 
EVerticalAlignment GetVerticalAlignment () const
 
- Public Member Functions inherited from TResizingWidgetSlotMixin< MixedIntoType >
 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)
 

Additional Inherited Members

- Public Types inherited from TSlotBase< SlotType >
enum  EConstructSlotIsFChildren { ConstructSlotIsFChildren }
 
- Static Public Member Functions inherited from SBoxPanel::TSlot< FSlot >
static void RegisterAttributes (FSlateWidgetSlotAttributeInitializer &AttributeInitializer)
 
- Static Public Member Functions inherited from TBasicLayoutWidgetSlot< SlotType >
static void RegisterAttributes (FSlateWidgetSlotAttributeInitializer &AttributeInitializer)
 
- Static Public Member Functions inherited from TWidgetSlotWithAttributeSupport< SlotType >
static void RegisterAttributes (FSlateWidgetSlotAttributeInitializer &AttributeInitializer)
 
- Public Attributes inherited from TBasicLayoutWidgetSlot< SlotType >
FSlotArguments && InArgs
 
- Protected Types inherited from TResizingWidgetSlotMixin< MixedIntoType >
template<typename InObjectType >
using TSlateSlotAttribute = ::SlateAttributePrivate::TSlateContainedAttribute< InObjectType, ::SlateAttributePrivate::FSlateAttributeNoInvalidationReason, TSlateAttributeComparePredicate<> >
 
- Protected Member Functions inherited from FSlotBase
template<typename TargetValueType , typename SourceValueType >
bool SetAttribute (TAttribute< TargetValueType > &TargetValue, const TAttribute< SourceValueType > &SourceValue, EInvalidateWidgetReason BaseInvalidationReason)
 
- Protected Member Functions inherited from SlateAttributePrivate::ISlateAttributeContainer
SLATECORE_API void RemoveContainerWidget (SWidget &Widget)
 
SLATECORE_API void UpdateContainerSortOrder (SWidget &Widget)
 
- Protected Member Functions inherited from TPaddingWidgetSlotMixin< SlotType >
void ConstructMixin (const FChildren &SlotOwner, FSlotArgumentsMixin &&InArgs)
 
- Protected Member Functions inherited from TAlignmentWidgetSlotMixin< SlotType >
void ConstructMixin (const FChildren &SlotOwner, FSlotArgumentsMixin &&InArgs)
 
- Protected Member Functions inherited from TResizingWidgetSlotMixin< MixedIntoType >
void ConstructMixin (const FChildren &SlotOwner, FSlotArgumentsMixin &&InArgs)
 
- Static Protected Member Functions inherited from TPaddingWidgetSlotMixin< SlotType >
static void RegisterAttributesMixin (FSlateWidgetSlotAttributeInitializer &AttributeInitializer)
 
- Static Protected Member Functions inherited from TResizingWidgetSlotMixin< MixedIntoType >
static void RegisterAttributesMixin (FSlateWidgetSlotAttributeInitializer &AttributeInitializer)
 
- Protected Attributes inherited from TResizingWidgetSlotMixin< MixedIntoType >
FSizeParam::ESizeRule SizeRule
 
TSlateSlotAttribute< floatSizeValue
 
TSlateSlotAttribute< floatShrinkSizeValue
 
TSlateSlotAttribute< floatMinSize
 
TSlateSlotAttribute< floatMaxSize
 

Member Function Documentation

◆ AutoWidth()

FSlotArguments & SHorizontalBox::FSlot::AutoWidth ( )
inline

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

◆ Construct()

void SHorizontalBox::FSlot::Construct ( const FChildren SlotOwner,
FSlotArguments &&  InArgs 
)
inline

◆ FillContentWidth()

FSlotArguments & SHorizontalBox::FSlot::FillContentWidth ( 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.

◆ FillWidth()

FSlotArguments & SHorizontalBox::FSlot::FillWidth ( 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.

◆ MaxWidth()

FSlotArguments & SHorizontalBox::FSlot::MaxWidth ( TAttribute< float InMaxWidth)
inline

Set the max size in SlateUnit this slot can be.

◆ MinWidth()

FSlotArguments & SHorizontalBox::FSlot::MinWidth ( TAttribute< float InMinWidth)
inline

Set the min size in SlateUnit this slot can be.

◆ SetAutoWidth()

void SHorizontalBox::FSlot::SetAutoWidth ( )
inline

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

◆ SetFillContentWidth()

void SHorizontalBox::FSlot::SetFillContentWidth ( 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.

◆ SetFillWidth()

void SHorizontalBox::FSlot::SetFillWidth ( 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.

◆ SetMaxWidth()

void SHorizontalBox::FSlot::SetMaxWidth ( TAttribute< float InMaxWidth)
inline

Set the max size in SlateUnit this slot can be.

◆ SetMinWidth()

void SHorizontalBox::FSlot::SetMinWidth ( TAttribute< float InMinWidth)
inline

Set the min size in SlateUnit this slot can be.


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