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

#include <Children.h>

+ Inheritance diagram for TOneDynamicChild< SlotType >:

Public Member Functions

 TOneDynamicChild (SWidget *InOwner, TPanelChildren< SlotType > *InAllChildren, const TAttribute< int32 > *InWidgetIndex)
 
 TOneDynamicChild (SWidget *InOwner, TPanelChildren< SlotType > *InAllChildren, std::nullptr_t)=delete
 
 TOneDynamicChild (SWidget *InOwner, std::nullptr_t, const TAttribute< int32 > *InWidgetIndex)=delete
 
 TOneDynamicChild (SWidget *InOwner, std::nullptr_t, std::nullptr_t)=delete
 
 TOneDynamicChild (std::nullptr_t, TPanelChildren< SlotType > *InAllChildren, std::nullptr_t)=delete
 
 TOneDynamicChild (std::nullptr_t, std::nullptr_t, const TAttribute< int32 > *InWidgetIndex)=delete
 
 TOneDynamicChild (std::nullptr_t, std::nullptr_t, std::nullptr_t)=delete
 
virtual int32 Num () const override
 
virtual TSharedRef< SWidgetGetChildAt (int32 Index) override
 
virtual TSharedRef< const SWidgetGetChildAt (int32 Index) const override
 
- 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 Member Functions inherited from FChildren
virtual ~FChildren ()
 
void Debug_TestDestroyTag () const
 

Detailed Description

template<typename SlotType>
class TOneDynamicChild< SlotType >

Required to implement GetChildren() in a way that can dynamically return the currently active child.

Constructor & Destructor Documentation

◆ TOneDynamicChild() [1/7]

template<typename SlotType >
TOneDynamicChild< SlotType >::TOneDynamicChild ( SWidget InOwner,
TPanelChildren< SlotType > *  InAllChildren,
const TAttribute< int32 > *  InWidgetIndex 
)
inline

◆ TOneDynamicChild() [2/7]

template<typename SlotType >
TOneDynamicChild< SlotType >::TOneDynamicChild ( SWidget InOwner,
TPanelChildren< SlotType > *  InAllChildren,
std::nullptr_t   
)
delete

◆ TOneDynamicChild() [3/7]

template<typename SlotType >
TOneDynamicChild< SlotType >::TOneDynamicChild ( SWidget InOwner,
std::nullptr_t  ,
const TAttribute< int32 > *  InWidgetIndex 
)
delete

◆ TOneDynamicChild() [4/7]

template<typename SlotType >
TOneDynamicChild< SlotType >::TOneDynamicChild ( SWidget InOwner,
std::nullptr_t  ,
std::nullptr_t   
)
delete

◆ TOneDynamicChild() [5/7]

template<typename SlotType >
TOneDynamicChild< SlotType >::TOneDynamicChild ( std::nullptr_t  ,
TPanelChildren< SlotType > *  InAllChildren,
std::nullptr_t   
)
delete

◆ TOneDynamicChild() [6/7]

template<typename SlotType >
TOneDynamicChild< SlotType >::TOneDynamicChild ( std::nullptr_t  ,
std::nullptr_t  ,
const TAttribute< int32 > *  InWidgetIndex 
)
delete

◆ TOneDynamicChild() [7/7]

template<typename SlotType >
TOneDynamicChild< SlotType >::TOneDynamicChild ( std::nullptr_t  ,
std::nullptr_t  ,
std::nullptr_t   
)
delete

Member Function Documentation

◆ GetChildAt() [1/2]

template<typename SlotType >
virtual TSharedRef< const SWidget > TOneDynamicChild< 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 > TOneDynamicChild< SlotType >::GetChildAt ( int32  Index)
inlineoverridevirtual
Returns
pointer to the Widget at the specified Index.

Implements FChildren.

◆ Num()

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

Implements FChildren.


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