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

#include <Children.h>

+ Inheritance diagram for TSlotlessChildren< ChildType >:

Public Member Functions

 TSlotlessChildren (SWidget *InOwner, bool InbChangesInvalidatePrepass=true)
 
 TSlotlessChildren (std::nullptr_t, bool InbChangesInvalidatePrepass=true)=delete
 
virtual int32 Num () const override
 
virtual TSharedRef< SWidgetGetChildAt (int32 Index) override
 
virtual TSharedRef< const SWidgetGetChildAt (int32 Index) const override
 
int32 Add (const TSharedRef< ChildType > &Child)
 
void Reset (int32 NewSize=0)
 
void Empty (int32 Slack=0)
 
void Insert (const TSharedRef< ChildType > &Child, int32 Index)
 
int32 Remove (const TSharedRef< ChildType > &Child)
 
void RemoveAt (int32 Index)
 
int32 Find (const TSharedRef< ChildType > &Item) const
 
TArray< TSharedRef< ChildType > > AsArrayCopy () const
 
const TSharedRef< ChildType > & operator[] (int32 Index) const
 
TSharedRef< ChildType > & operator[] (int32 Index)
 
template<class PREDICATE_CLASS >
void Sort (const PREDICATE_CLASS &Predicate)
 
void Swap (int32 IndexA, int32 IndexB)
 
- 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 bool SupportSlotWithSlateAttribute () const
 
FName GetName () const
 

Additional Inherited Members

- Protected Types inherited from FChildren
enum  ECopyConstruct { CopyConstruct }
 
enum  ERefConstruct { ReferenceConstruct }
 
- Protected Member Functions inherited from FChildren
virtual ~FChildren ()
 
void Debug_TestDestroyTag () const
 

Detailed Description

template<typename ChildType>
class TSlotlessChildren< ChildType >

Some advanced widgets contain no layout information, and do not require slots. Those widgets may wish to store a specialized type of child widget. In those cases, using TSlotlessChildren is convenient.

TSlotlessChildren should not be used for general-purpose widgets.

Constructor & Destructor Documentation

◆ TSlotlessChildren() [1/2]

template<typename ChildType >
TSlotlessChildren< ChildType >::TSlotlessChildren ( SWidget InOwner,
bool  InbChangesInvalidatePrepass = true 
)
inline

◆ TSlotlessChildren() [2/2]

template<typename ChildType >
TSlotlessChildren< ChildType >::TSlotlessChildren ( std::nullptr_t  ,
bool  InbChangesInvalidatePrepass = true 
)
delete

Member Function Documentation

◆ Add()

template<typename ChildType >
int32 TSlotlessChildren< ChildType >::Add ( const TSharedRef< ChildType > &  Child)
inline

◆ AsArrayCopy()

template<typename ChildType >
TArray< TSharedRef< ChildType > > TSlotlessChildren< ChildType >::AsArrayCopy ( ) const
inline

◆ Empty()

template<typename ChildType >
void TSlotlessChildren< ChildType >::Empty ( int32  Slack = 0)
inline

◆ Find()

template<typename ChildType >
int32 TSlotlessChildren< ChildType >::Find ( const TSharedRef< ChildType > &  Item) const
inline

◆ GetChildAt() [1/2]

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

Implements FChildren.

◆ GetChildAt() [2/2]

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

Implements FChildren.

◆ Insert()

template<typename ChildType >
void TSlotlessChildren< ChildType >::Insert ( const TSharedRef< ChildType > &  Child,
int32  Index 
)
inline

◆ Num()

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

Implements FChildren.

◆ operator[]() [1/2]

template<typename ChildType >
TSharedRef< ChildType > & TSlotlessChildren< ChildType >::operator[] ( int32  Index)
inline

◆ operator[]() [2/2]

template<typename ChildType >
const TSharedRef< ChildType > & TSlotlessChildren< ChildType >::operator[] ( int32  Index) const
inline

◆ Remove()

template<typename ChildType >
int32 TSlotlessChildren< ChildType >::Remove ( const TSharedRef< ChildType > &  Child)
inline

◆ RemoveAt()

template<typename ChildType >
void TSlotlessChildren< ChildType >::RemoveAt ( int32  Index)
inline

◆ Reset()

template<typename ChildType >
void TSlotlessChildren< ChildType >::Reset ( int32  NewSize = 0)
inline

◆ Sort()

template<typename ChildType >
template<class PREDICATE_CLASS >
void TSlotlessChildren< ChildType >::Sort ( const PREDICATE_CLASS Predicate)
inline

◆ Swap()

template<typename ChildType >
void TSlotlessChildren< ChildType >::Swap ( int32  IndexA,
int32  IndexB 
)
inline

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