Navigation
API > API/Runtime > API/Runtime/SlateCore
Some advanced widgets contain no layout information, and do not require slots. Those widgets may wish to store a specialized type of child widget. In those cases, using TSlotlessChildren is convenient.
TSlotlessChildren should not be used for general-purpose widgets.
| Name | TSlotlessChildren |
| Type | class |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Layout/Children.h |
| Include Path | #include "Layout/Children.h" |
Syntax
template<typename ChildType>
class TSlotlessChildren : public FChildren
Inheritance Hierarchy
- FChildren → TSlotlessChildren
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSlotlessChildren
(
SWidget* InOwner, |
Layout/Children.h | ||
TSlotlessChildren
(
std::nullptr_t, |
Layout/Children.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bChangesInvalidatePrepass | bool | Layout/Children.h | ||
| Children | TArray< TSharedRef< ChildType > > | Layout/Children.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 Add
(
const TSharedRef< ChildType >& Child |
Layout/Children.h | ||
TArray< TSharedRef< ChildType > > AsArrayCopy() |
Layout/Children.h | ||
void Empty
(
int32 Slack |
Layout/Children.h | ||
int32 Find
(
const TSharedRef< ChildType >& Item |
Layout/Children.h | ||
void Insert
(
const TSharedRef< ChildType >& Child, |
Layout/Children.h | ||
int32 Remove
(
const TSharedRef< ChildType >& Child |
Layout/Children.h | ||
void RemoveAt
(
int32 Index |
Layout/Children.h | ||
void Reset
(
int32 NewSize |
Layout/Children.h | ||
void Sort
(
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< SWidget > GetChildAt
(
int32 Index |
Layout/Children.h | ||
virtual TSharedRef< const SWidget > GetChildAt
(
int32 Index |
Layout/Children.h | ||
virtual int32 Num() |
Layout/Children.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSharedRef< ChildType > & operator[]
(
int32 Index |
Layout/Children.h | ||
const TSharedRef< ChildType > & operator[]
(
int32 Index |
Layout/Children.h |