UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TSlotBase< SlotType >::FSlotArguments Struct Reference

#include <SlotBase.h>

+ Inheritance diagram for TSlotBase< SlotType >::FSlotArguments:

Public Member Functions

 FSlotArguments (EConstructSlotIsFChildren)
 
 FSlotArguments (TUniquePtr< SlotType > InSlot)
 
 FSlotArguments (const FSlotArguments &)=delete
 
FSlotArgumentsoperator= (const FSlotArguments &)=delete
 
 FSlotArguments (FSlotArguments &&)=default
 
FSlotArgumentsoperator= (FSlotArguments &&)=default
 
SlotType::FSlotArguments & operator[] (TSharedRef< SWidget > &&InChildWidget)
 
SlotType::FSlotArguments & operator[] (const TSharedRef< SWidget > &InChildWidget)
 
SlotType::FSlotArguments & Expose (SlotType *&OutVarToInit)
 
void AttachWidget (const TSharedRef< SWidget > &InChildWidget)
 
const TSharedPtr< SWidget > & GetAttachedWidget () const
 
SlotType * GetSlot () const
 
TUniquePtr< SlotType > StealSlot ()
 
SlotType::FSlotArguments & Me ()
 

Detailed Description

template<typename SlotType>
struct TSlotBase< SlotType >::FSlotArguments

Struct to construct a slot.

Constructor & Destructor Documentation

◆ FSlotArguments() [1/4]

template<typename SlotType >
TSlotBase< SlotType >::FSlotArguments::FSlotArguments ( EConstructSlotIsFChildren  )
inline

◆ FSlotArguments() [2/4]

template<typename SlotType >
TSlotBase< SlotType >::FSlotArguments::FSlotArguments ( TUniquePtr< SlotType >  InSlot)
inline

◆ FSlotArguments() [3/4]

template<typename SlotType >
TSlotBase< SlotType >::FSlotArguments::FSlotArguments ( const FSlotArguments )
delete

◆ FSlotArguments() [4/4]

template<typename SlotType >
TSlotBase< SlotType >::FSlotArguments::FSlotArguments ( FSlotArguments &&  )
default

Member Function Documentation

◆ AttachWidget()

template<typename SlotType >
void TSlotBase< SlotType >::FSlotArguments::AttachWidget ( const TSharedRef< SWidget > &  InChildWidget)
inline

Attach the child widget the slot will own.

◆ Expose()

template<typename SlotType >
SlotType::FSlotArguments & TSlotBase< SlotType >::FSlotArguments::Expose ( SlotType *&  OutVarToInit)
inline

Initialize OutVarToInit with the slot that is being constructed.

◆ GetAttachedWidget()

template<typename SlotType >
const TSharedPtr< SWidget > & TSlotBase< SlotType >::FSlotArguments::GetAttachedWidget ( ) const
inline
Returns
the child widget that will be owned by the slot.

◆ GetSlot()

template<typename SlotType >
SlotType * TSlotBase< SlotType >::FSlotArguments::GetSlot ( ) const
inline
Returns
the slot that is being constructed.

◆ Me()

template<typename SlotType >
SlotType::FSlotArguments & TSlotBase< SlotType >::FSlotArguments::Me ( )
inline

Used by the named argument pattern as a safe way to 'return *this' for call-chaining purposes.

◆ operator=() [1/2]

template<typename SlotType >
FSlotArguments & TSlotBase< SlotType >::FSlotArguments::operator= ( const FSlotArguments )
delete

◆ operator=() [2/2]

template<typename SlotType >
FSlotArguments & TSlotBase< SlotType >::FSlotArguments::operator= ( FSlotArguments &&  )
default

◆ operator[]() [1/2]

template<typename SlotType >
SlotType::FSlotArguments & TSlotBase< SlotType >::FSlotArguments::operator[] ( const TSharedRef< SWidget > &  InChildWidget)
inline

◆ operator[]() [2/2]

template<typename SlotType >
SlotType::FSlotArguments & TSlotBase< SlotType >::FSlotArguments::operator[] ( TSharedRef< SWidget > &&  InChildWidget)
inline

Attach the child widget the slot will own.

◆ StealSlot()

template<typename SlotType >
TUniquePtr< SlotType > TSlotBase< SlotType >::FSlotArguments::StealSlot ( )
inline

Steal the slot that is being constructed from the FSlotArguments.


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