TWeakChild

For widgets that do not own their content, but are responsible for presenting someone else's content.

Windows
MacOS
Linux

Inheritance Hierarchy

FChildren

TWeakChild

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Layout/Children.h

Include

#include "Layout/Children.h"

Syntax

template<typename ChildType>
class TWeakChild : public FChildren

Remarks

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.

Constructors

Name Description

Public function

TWeakChild

(
    SWidget* InOwner
)

Functions

Name Description

Public function

void

 

AttachWidget

(
    const TSharedPtr< SWidget >& InWid...
)

Public function

void

 

DetachWidget()

Public function Const

TSharedRef< ...

 

GetWidget()

Overridden from FChildren

Name Description

Public function Virtual

TSharedRef< ...

 

GetChildAt

(
    int32 Index
)

Public function Virtual Const

TSharedRef< ...

 

GetChildAt

(
    int32 Index
)

Public function Virtual Const

int32

 

Num()

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss