Navigation
API > API/Runtime > API/Runtime/SlateCore
Slot are a container of a SWidget used by the FChildren.
| Name | FSlotBase |
| Type | class |
| Header File | /Engine/Source/Runtime/SlateCore/Public/SlotBase.h |
| Include Path | #include "SlotBase.h" |
Syntax
class FSlotBase
Inheritance Hierarchy
- FSlotPosition → FSlotBase
- FSlotBase
Derived Classes
FSlotBase derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| SlotBase.h | |||
FSlotBase () |
SlotBase.h | ||
| SlotBase.h | |||
FSlotBase
(
const TSharedRef< SWidget >& InWidget |
SlotBase.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FSlotBase() |
SlotBase.h |
Structs
| Name | Remarks |
|---|---|
| FSlotArguments |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Owner | const FChildren * | The children that own the slot. | SlotBase.h | |
| Widget | TSharedRef< SWidget > | The content widget of the slot. | SlotBase.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AttachWidget
(
const TSharedRef< SWidget >& InWidget |
SlotBase.h | ||
void AttachWidget
(
TSharedRef< SWidget >&& InWidget |
Attach the child widget the slot now owns. | SlotBase.h | |
const TSharedPtr< SWidget > DetachWidget () |
Remove the widget from its current slot. | SlotBase.h | |
| Access the FChildren that own the slot. | SlotBase.h | ||
SWidget * GetOwnerWidget() |
Access the widget that own the slot. The owner can be invalid when the slot is not attached. | SlotBase.h | |
const TSharedRef< SWidget > & GetWidget () |
Access the widget in the current slot. | SlotBase.h | |
void Invalidate
(
EInvalidateWidgetReason InvalidateReason |
Invalidate the widget's owner. | SlotBase.h | |
void SetOwner
(
const FChildren& Children |
Set the owner of the slot. Slots cannot be reassigned to different parents. | SlotBase.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool SetAttribute
(
TAttribute< TargetValueType >& TargetValue, |
Performs the attribute assignment and invalidates the widget minimally based on what actually changed. | SlotBase.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| SlotBase.h |