Navigation
API > API/Runtime > API/Runtime/SlateCore
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;
| Name | TPanelChildren |
| Type | class |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Layout/Children.h |
| Include Path | #include "Layout/Children.h" |
Syntax
template<typename SlotType>
class TPanelChildren : public FChildren
Inheritance Hierarchy
- FChildren → TPanelChildren
Structs
| Name | Remarks |
|---|---|
| FScopedWidgetSlotArguments | At the end of the scope a slot will be constructed and added to the FChildren. |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| bSupportSlotWithSlateAttribute | bool | Layout/Children.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Children | TArray< TUniquePtr< SlotType > > | Layout/Children.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 AddSlot
(
typename SlotType::FSlotArguments&& SlotArgument |
Layout/Children.h | ||
void AddSlots
(
TArray< typename SlotType::FSlotArguments > SlotArguments |
Layout/Children.h | ||
void Empty
(
int32 Slack |
Layout/Children.h | ||
| Layout/Children.h | |||
FChildren
(
std::nullptr_t |
Layout/Children.h | ||
| Layout/Children.h | |||
void InsertSlot
(
typename SlotType::FSlotArguments&& SlotArgument, |
Layout/Children.h | ||
bool IsValidIndex
(
int32 Index |
Layout/Children.h | ||
void Move
(
int32 IndexToMove, |
Layout/Children.h | ||
int32 Remove
(
const TSharedRef< SWidget >& SlotWidget |
Removes the corresponding widget from the set of children if it exists. | Layout/Children.h | |
void RemoveAt
(
int32 Index |
Layout/Children.h | ||
void Reserve
(
int32 NumToReserve |
Layout/Children.h | ||
void Sort
(
const PREDICATE_CLASS& Predicate |
Layout/Children.h | ||
void StableSort
(
const PREDICATE_CLASS& Predicate |
Layout/Children.h | ||
void Swap
(
int32 IndexA, |
Layout/Children.h |
Overridden from FChildren
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TSharedRef< const SWidget > GetChildAt
(
int32 Index |
Layout/Children.h | ||
virtual TSharedRef< SWidget > GetChildAt
(
int32 Index |
Layout/Children.h | ||
virtual int32 Num() |
Layout/Children.h | ||
virtual bool SupportSlotWithSlateAttribute() |
Layout/Children.h |
Protected
Overridden from FChildren
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FConstWidgetRef GetChildRefAt
(
int32 Index |
Layout/Children.h | ||
virtual FWidgetRef GetChildRefAt
(
int32 Index |
Layout/Children.h | ||
virtual const FSlotBase & GetSlotAt
(
int32 ChildIndex |
Layout/Children.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
SlotType & operator[]
(
int32 Index |
Layout/Children.h | ||
const SlotType & operator[]
(
int32 Index |
Layout/Children.h |