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

#include <Children.h>

+ Inheritance diagram for TSingleWidgetChildrenWithSlot< SlotType >:

Classes

struct  FSlotArguments
 

Public Member Functions

 TSingleWidgetChildrenWithSlot (SWidget *InOwner)
 
 TSingleWidgetChildrenWithSlot (SWidget *InOwner, FName InName)
 
 TSingleWidgetChildrenWithSlot (std::nullptr_t)=delete
 
virtual int32 Num () const override
 
virtual TSharedRef< SWidgetGetChildAt (int32 ChildIndex) override
 
virtual TSharedRef< const SWidgetGetChildAt (int32 ChildIndex) const override
 
void Construct (FSlotArguments &&InArgs)
 
TSlotBase< SlotType > & AsSlot ()
 
const TSlotBase< SlotType > & AsSlot () const
 
SlotType & operator[] (const TSharedRef< SWidget > &InChildWidget)
 
SlotType & Expose (SlotType *&OutVarToInit)
 
- Public Member Functions inherited from FChildren
 FChildren (SWidget *InOwner)
 
 FChildren (SWidget *InOwner, FName InName)
 
 FChildren (std::nullptr_t)=delete
 
voidoperator new (size_t)=delete
 
voidoperator new[] (size_t)=delete
 
SWidgetGetOwner () const
 
template<typename Predicate >
void ForEachWidget (Predicate &&Pred)
 
template<typename Predicate >
void ForEachWidget (Predicate &&Pred) const
 
virtual int32 NumSlot () const
 
virtual bool SupportSlotWithSlateAttribute () const
 
FName GetName () const
 

Additional Inherited Members

- Protected Types inherited from FChildren
enum  ECopyConstruct { CopyConstruct }
 
enum  ERefConstruct { ReferenceConstruct }
 
- Protected Types inherited from TSlotBase< SlotType >
enum  EConstructSlotIsFChildren { ConstructSlotIsFChildren }
 
- Protected Member Functions inherited from FChildren
virtual ~FChildren ()
 
void Debug_TestDestroyTag () const
 
- Protected 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
 
- Protected Member Functions inherited from FSlotBase
template<typename TargetValueType , typename SourceValueType >
bool SetAttribute (TAttribute< TargetValueType > &TargetValue, const TAttribute< SourceValueType > &SourceValue, EInvalidateWidgetReason BaseInvalidationReason)
 
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)
 

Detailed Description

template<typename SlotType>
class TSingleWidgetChildrenWithSlot< SlotType >

A FChildren that has only one child and can take a templated slot.

Constructor & Destructor Documentation

◆ TSingleWidgetChildrenWithSlot() [1/3]

template<typename SlotType >
TSingleWidgetChildrenWithSlot< SlotType >::TSingleWidgetChildrenWithSlot ( SWidget InOwner)
inline

◆ TSingleWidgetChildrenWithSlot() [2/3]

template<typename SlotType >
TSingleWidgetChildrenWithSlot< SlotType >::TSingleWidgetChildrenWithSlot ( SWidget InOwner,
FName  InName 
)
inline

◆ TSingleWidgetChildrenWithSlot() [3/3]

template<typename SlotType >
TSingleWidgetChildrenWithSlot< SlotType >::TSingleWidgetChildrenWithSlot ( std::nullptr_t  )
delete

Member Function Documentation

◆ AsSlot() [1/2]

template<typename SlotType >
TSlotBase< SlotType > & TSingleWidgetChildrenWithSlot< SlotType >::AsSlot ( )
inline

◆ AsSlot() [2/2]

template<typename SlotType >
const TSlotBase< SlotType > & TSingleWidgetChildrenWithSlot< SlotType >::AsSlot ( ) const
inline

◆ Construct()

template<typename SlotType >
void TSingleWidgetChildrenWithSlot< SlotType >::Construct ( FSlotArguments &&  InArgs)
inline

◆ Expose()

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

◆ GetChildAt() [1/2]

template<typename SlotType >
virtual TSharedRef< const SWidget > TSingleWidgetChildrenWithSlot< SlotType >::GetChildAt ( int32  Index) const
inlineoverridevirtual
Returns
const pointer to the Widget at the specified Index.

Implements FChildren.

◆ GetChildAt() [2/2]

template<typename SlotType >
virtual TSharedRef< SWidget > TSingleWidgetChildrenWithSlot< SlotType >::GetChildAt ( int32  Index)
inlineoverridevirtual
Returns
pointer to the Widget at the specified Index.

Implements FChildren.

◆ Num()

template<typename SlotType >
virtual int32 TSingleWidgetChildrenWithSlot< SlotType >::Num ( ) const
inlineoverridevirtual
Returns
the number of children

Implements FChildren.

◆ operator[]()

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

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