Navigation
API > API/Runtime > API/Runtime/UMG
The Slot for the UWidgetSwitcher, contains the widget that is flowed vertically
| Name | UWidgetSwitcherSlot |
| Type | class |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/WidgetSwitcherSlot.h |
| Include Path | #include "Components/WidgetSwitcherSlot.h" |
Syntax
UCLASS (MinimalAPI)
class UWidgetSwitcherSlot : public UPanelSlot
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UVisual → UPanelSlot → UWidgetSwitcherSlot
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UWidgetSwitcherSlot
(
const FObjectInitializer& ObjectInitializer |
Components/WidgetSwitcherSlot.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| HorizontalAlignment | TEnumAsByte< EHorizontalAlignment > | The alignment of the object horizontally. | Components/WidgetSwitcherSlot.h |
|
| Padding | FMargin | The padding area between the slot and the content it contains. | Components/WidgetSwitcherSlot.h |
|
| VerticalAlignment | TEnumAsByte< EVerticalAlignment > | The alignment of the object vertically. | Components/WidgetSwitcherSlot.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Slot | SWidgetSwitcher::FSlot * | A raw pointer to the slot to allow us to adjust the size, padding...etc at runtime. | Components/WidgetSwitcherSlot.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void BuildSlot
(
TSharedRef< SWidgetSwitcher > InWidgetSwitcher |
Builds the underlying FSlot for the Slate layout panel. | Components/WidgetSwitcherSlot.h | |
EHorizontalAlignment GetHorizontalAlignment() |
Components/WidgetSwitcherSlot.h | ||
FMargin GetPadding() |
Components/WidgetSwitcherSlot.h | ||
EVerticalAlignment GetVerticalAlignment() |
Components/WidgetSwitcherSlot.h | ||
void SetContent
(
UWidget* NewContent |
Sets the content of this slot, removing existing content if needed. | Components/WidgetSwitcherSlot.h | |
void SetHorizontalAlignment
(
EHorizontalAlignment InHorizontalAlignment |
Components/WidgetSwitcherSlot.h |
|
|
void SetPadding
(
FMargin InPadding |
Components/WidgetSwitcherSlot.h |
|
|
void SetVerticalAlignment
(
EVerticalAlignment InVerticalAlignment |
Components/WidgetSwitcherSlot.h |
|
Overridden from UPanelSlot
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void SynchronizeProperties() |
Applies all properties to the live slot if possible. | Components/WidgetSwitcherSlot.h |
Overridden from UVisual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ReleaseSlateResources
(
bool bReleaseChildren |
Components/WidgetSwitcherSlot.h |