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

#include <Children.h>

+ Inheritance diagram for TWeakChild< ChildType >:

Public Member Functions

virtual int32 Num () const override
 
virtual TSharedRef< SWidgetGetChildAt (int32 ChildIndex) override
 
virtual TSharedRef< const SWidgetGetChildAt (int32 ChildIndex) const override
 
void AttachWidget (const TSharedPtr< SWidget > &InWidget)
 
void DetachWidget ()
 
TSharedRef< SWidgetGetWidget () const
 
 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
 

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 TWeakChild< ChildType >

For widgets that do not own their content, but are responsible for presenting someone else's content. e.g. Tooltips are just presented by the owner window; not actually owned by it. They can go away at any time and then they'll just stop being shown.

Member Function Documentation

◆ AttachWidget()

template<typename ChildType >
void TWeakChild< ChildType >::AttachWidget ( const TSharedPtr< SWidget > &  InWidget)
inline

◆ DetachWidget()

template<typename ChildType >
void TWeakChild< ChildType >::DetachWidget ( )
inline

◆ FChildren() [1/3]

template<typename ChildType >
FChildren::FChildren ( std::nullptr_t  )
delete

◆ FChildren() [2/3]

template<typename ChildType >
FChildren::FChildren ( SWidget InOwner)
inline

◆ FChildren() [3/3]

template<typename ChildType >
FChildren::FChildren ( SWidget InOwner,
FName  InName 
)
inline

◆ GetChildAt() [1/2]

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

Implements FChildren.

◆ GetWidget()

template<typename ChildType >
TSharedRef< SWidget > TWeakChild< ChildType >::GetWidget ( ) const
inline

◆ Num()

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

Implements FChildren.


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