UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FCombinedChildren Class Referencefinal

#include <Children.h>

+ Inheritance diagram for FCombinedChildren:

Public Member Functions

void AddChildren (FChildren &InLinkedChildren)
 
virtual int32 Num () const override
 
virtual TSharedRef< SWidgetGetChildAt (int32 Index) override
 
virtual TSharedRef< const SWidgetGetChildAt (int32 Index) const override
 
 FChildren (SWidget *InOwner)
 
 FChildren (SWidget *InOwner, FName InName)
 
 FChildren (std::nullptr_t)=delete
 
- 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
 

Protected Member Functions

virtual int32 NumSlot () const override
 
virtual const FSlotBaseGetSlotAt (int32 ChildIndex) const override
 
virtual FWidgetRef GetChildRefAt (int32 Index) override
 
virtual FConstWidgetRef GetChildRefAt (int32 Index) const override
 
- Protected Member Functions inherited from FChildren
virtual ~FChildren ()
 
void Debug_TestDestroyTag () const
 

Protected Attributes

TArray< FChildren * > LinkedChildren
 

Additional Inherited Members

- Protected Types inherited from FChildren
enum  ECopyConstruct { CopyConstruct }
 
enum  ERefConstruct { ReferenceConstruct }
 

Detailed Description

Occasionally you may need to keep multiple discrete sets of children with differing slot requirements. This data structure can be used to link multiple FChildren under a single accessor so you can always return all children from GetChildren, but internally manage them in their own child lists.

Member Function Documentation

◆ AddChildren()

void FCombinedChildren::AddChildren ( FChildren InLinkedChildren)
inline

◆ FChildren() [1/3]

FChildren::FChildren ( std::nullptr_t  )
delete

◆ FChildren() [2/3]

FChildren::FChildren ( SWidget InOwner)
inline

◆ FChildren() [3/3]

FChildren::FChildren ( SWidget InOwner,
FName  InName 
)
inline

◆ GetChildAt() [1/2]

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

Implements FChildren.

◆ GetChildAt() [2/2]

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

Implements FChildren.

◆ GetChildRefAt() [1/2]

virtual FConstWidgetRef FCombinedChildren::GetChildRefAt ( int32  Index) const
inlineoverrideprotectedvirtual
Returns
ref to the Widget at the specified Index.

Implements FChildren.

◆ GetChildRefAt() [2/2]

virtual FWidgetRef FCombinedChildren::GetChildRefAt ( int32  Index)
inlineoverrideprotectedvirtual
Returns
ref to the Widget at the specified Index.

Implements FChildren.

◆ GetSlotAt()

virtual const FSlotBase & FCombinedChildren::GetSlotAt ( int32  ChildIndex) const
inlineoverrideprotectedvirtual
Returns
the const reference to the slot at the specified Index

Implements FChildren.

◆ Num()

virtual int32 FCombinedChildren::Num ( ) const
inlineoverridevirtual
Returns
the number of children

Implements FChildren.

◆ NumSlot()

virtual int32 FCombinedChildren::NumSlot ( ) const
inlineoverrideprotectedvirtual
Returns
the number of slot the children has.

Reimplemented from FChildren.

Member Data Documentation

◆ LinkedChildren

TArray<FChildren*> FCombinedChildren::LinkedChildren
protected

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