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

#include <SSplitter.h>

+ Inheritance diagram for SSplitter::FSlot:

Public Member Functions

 FSlot ()
 
UE_API void Construct (const FChildren &SlotOwner, FSlotArguments &&InArgs)
 
void SetSizeValue (TAttribute< float > InValue)
 
float GetSizeValue () const
 
void SetResizable (bool bInIsResizable)
 
bool IsResizable () const
 
void SetMinSize (float InMinSize)
 
float GetMinSize () const
 
FOnSlotResizedOnSlotResized ()
 
const FOnSlotResizedOnSlotResized () const
 
void SetSizingRule (TAttribute< ESizeRule > InSizeRule)
 
ESizeRule GetSizingRule () const
 
UE_API bool CanBeResized () const
 
- Public Member Functions inherited from TSlotBase< FSlot >
FSlot & operator[] (TSharedRef< SWidget > &&InChildWidget)
 
FSlot & operator[] (const TSharedRef< SWidget > &InChildWidget)
 
FSlot & Expose (FSlot *&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)
 

Additional Inherited Members

- Public Types inherited from TSlotBase< FSlot >
enum  EConstructSlotIsFChildren
 
- Protected Member Functions inherited from FSlotBase
template<typename TargetValueType , typename SourceValueType >
bool SetAttribute (TAttribute< TargetValueType > &TargetValue, const TAttribute< SourceValueType > &SourceValue, EInvalidateWidgetReason BaseInvalidationReason)
 

Constructor & Destructor Documentation

◆ FSlot()

SSplitter::FSlot::FSlot ( )
inline

Member Function Documentation

◆ CanBeResized()

bool SSplitter::FSlot::CanBeResized ( ) const

A slot can be resize if bIsResizable and the SizeRule is a FractionOfParent or the OnSlotResized delegate is set.

◆ Construct()

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

The size rule used by the slot. When the RuleSize is set to FractionOfParent, the size of the slot is the Value percentage of its parent size. Minimum slot size when resizing. Can the slot be resize by the user. Callback when the slot is resized.

◆ GetMinSize()

float SSplitter::FSlot::GetMinSize ( ) const
inline

◆ GetSizeValue()

float SSplitter::FSlot::GetSizeValue ( ) const
inline

◆ GetSizingRule()

ESizeRule SSplitter::FSlot::GetSizingRule ( ) const
inline

◆ IsResizable()

bool SSplitter::FSlot::IsResizable ( ) const
inline

◆ OnSlotResized() [1/2]

FOnSlotResized & SSplitter::FSlot::OnSlotResized ( )
inline

Callback when the slot is resized.

See also
CanBeResized()

◆ OnSlotResized() [2/2]

const FOnSlotResized & SSplitter::FSlot::OnSlotResized ( ) const
inline

◆ SetMinSize()

void SSplitter::FSlot::SetMinSize ( float  InMinSize)
inline

Minimum slot size when resizing.

◆ SetResizable()

void SSplitter::FSlot::SetResizable ( bool  bInIsResizable)
inline

Can the slot be resize by the user.

See also
CanBeResized()

◆ SetSizeValue()

void SSplitter::FSlot::SetSizeValue ( TAttribute< float InValue)
inline

When the RuleSize is set to FractionOfParent, the size of the slot is the Value percentage of its parent size.

◆ SetSizingRule()

void SSplitter::FSlot::SetSizingRule ( TAttribute< ESizeRule InSizeRule)
inline

The size rule used by the slot.


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