FChildren

[FChildren](API\Runtime\SlateCore\Layout\FChildren) is an interface that must be implemented by all child containers.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

SlateCore

Header

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

Include

#include "Layout/ChildrenBase.h"

Syntax

class FChildren

Remarks

FChildren is an interface that must be implemented by all child containers. It allows iteration over a list of any Widget's children regardless of how the underlying Widget happens to store its children.

FChildren is intended to be returned by the GetChildren() method.

Constructors

Name Description

Public function

FChildren

(
    SWidget* InOwner
)

Public function

FChildren

(
    std::nullptr_t
)

Public function

FChildren

(
    SWidget* InOwner,
    FName InName
)

Destructors

Name Description

Protected function Virtual

~FChildren()

Functions

Name Description

Public function Const

void

 

ForEachWidget

(
    Predicate Pred
)

Applies the predicate to all the widgets contained by the FChildren.

Public function

void

 

ForEachWidget

(
    Predicate Pred
)

Applies the predicate to all the widgets contained by the FChildren.

Public function Const

TSharedRef< ...

 

GetChildAt

(
    int32 Index
)

Public function

TSharedRef< ...

 

GetChildAt

(
    int32 Index
)

Protected function Const

FConstWidget...

 

GetChildRefAt

(
    int32 Index
)

Protected function

FWidgetRef

 

GetChildRefAt

(
    int32 Index
)

Public function Const

FName

 

GetName()

Option to give a name to Children to SlotAttribute purposes or for debugging.

Public function Const

SWidget &

 

GetOwner()

Public function Const

const FSlotB...

 

GetSlotAt

(
    int32 ChildIndex
)

Public function Const

int32

 

Num()

Public function Virtual Const

int32

 

NumSlot()

Public function Virtual Const

bool

 

SupportSlotWithSlateAttribute()

Operators

Name Description

Public function

void *

 

operator new

(
    size_t
)

Public function

void *

 

operator new[]

(
    size_t
)

Classes

Name

Description

Protected struct

FConstWidgetRef

Protected struct

FWidgetRef

Enums

Name

Description

Protected enum

ECopyConstruct

Protected enum

ERefConstruct

Deprecated Variables

Name Description

Protected variable

SWidget *

 

Owner

Direct access to Owner is now deprecated. Use the getter.