Navigation
API > API/Runtime > API/Runtime/SlateCore
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.
| Name | TWeakChild |
| Type | class |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Layout/Children.h |
| Include Path | #include "Layout/Children.h" |
Syntax
template<typename ChildType>
class TWeakChild : public FChildren
Inheritance Hierarchy
- FChildren → TWeakChild
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| WidgetPtr | TWeakPtr< ChildType > | Layout/Children.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AttachWidget
(
const TSharedPtr< SWidget >& InWidget |
Layout/Children.h | ||
void DetachWidget() |
Layout/Children.h | ||
| Layout/Children.h | |||
FChildren
(
std::nullptr_t |
Layout/Children.h | ||
| Layout/Children.h | |||
TSharedRef< SWidget > GetWidget() |
Layout/Children.h |
Overridden from FChildren
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TSharedRef< SWidget > GetChildAt
(
int32 Index |
Layout/Children.h | ||
virtual TSharedRef< const SWidget > GetChildAt
(
int32 Index |
Layout/Children.h | ||
virtual int32 Num() |
Layout/Children.h |