TPanelChildren

A slot that support alignment of content and padding A generic [FChildren](API\Runtime\SlateCore\Layout\FChildren) that stores children along with layout-related information.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FChildren

TPanelChildren

References

Module

SlateCore

Header

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

Include

#include "Layout/Children.h"

Syntax

template<typename SlotType>
class TPanelChildren : public FChildren

Remarks

A slot that support alignment of content and padding A generic FChildren that stores children along with layout-related information. The type containing Widget* and layout info is specified by ChildType. ChildType must have a public member SWidget* Widget;

Functions

Name Description

Public function

int32

 

AddSlot

(
    typename SlotType::FSlotArguments&...
)

Public function

void

 

AddSlots

(
    TArray< typename SlotType::FSlotArg...
)

Public function

void

 

Empty

(
    int32 Slack
)

Public function

void

 

InsertSlot

(
    typename SlotType::FSlotArguments&...,
    int32 Index
)

Public function Const

bool

 

IsValidIndex

(
    int32 Index
)

Public function

void

 

Move

(
    int32 IndexToMove,
    int32 IndexToDestination
)

Public function

int32

 

Remove

(
    const TSharedRef< SWidget >& SlotW...
)

Removes the corresponding widget from the set of children if it exists.

Public function

void

 

RemoveAt

(
    int32 Index
)

Public function

void

 

Reserve

(
    int32 NumToReserve
)

Public function

void

 

Sort

(
    const PREDICATE_CLASS& Predicate
)

Public function

void

 

StableSort

(
    const PREDICATE_CLASS& Predicate
)

Public function

void

 

Swap

(
    int32 IndexA,
    int32 IndexB
)

Overridden from FChildren

Name Description

Public function Virtual Const

TSharedRef< ...

 

GetChildAt

(
    int32 Index
)

Public function Virtual

TSharedRef< ...

 

GetChildAt

(
    int32 Index
)

Protected function Virtual Const

FConstWidget...

 

GetChildRefAt

(
    int32 Index
)

Protected function Virtual

FWidgetRef

 

GetChildRefAt

(
    int32 Index
)

Protected function Virtual Const

const FSlotB...

 

GetSlotAt

(
    int32 ChildIndex
)

Public function Virtual Const

int32

 

Num()

Public function Virtual Const

bool

 

SupportSlotWithSlateAttribute()

Operators

Name Description

Public function

SlotType &

 

operator[]

(
    int32 Index
)

Public function Const

const SlotTy...

 

operator[]

(
    int32 Index
)

Classes

Name

Description

Public struct

FScopedWidgetSlotArguments

At the end of the scope a slot will be constructed and added to the FChildren.

Constants

Deprecated Functions

Name Description

Public function

int32

 

Add

(
    SlotType* Slot
)

Add a slot directly has been deprecated. use the FSlotArgument to create a new slot

Public function

void

 

Insert

(
    SlotType* Slot,
    int32 Index
)

Insert a slot directly has been deprecated. use the FSlotArgument to create a new slot