Navigation
API > API/Runtime > API/Runtime/UMG
The Slot for the UStackBox, contains the widget that is flowed vertically or horizontally.
| Name | UStackBoxSlot |
| Type | class |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/StackBoxSlot.h |
| Include Path | #include "Components/StackBoxSlot.h" |
Syntax
UCLASS (MinimalAPI)
class UStackBoxSlot : public UPanelSlot
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UVisual → UPanelSlot → UStackBoxSlot
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| HorizontalAlignment | TEnumAsByte< EHorizontalAlignment > | The alignment of the object horizontally. | Components/StackBoxSlot.h |
|
| Padding | FMargin | The padding area between the slot and the content it contains. | Components/StackBoxSlot.h |
|
| Size | FSlateChildSize | How much space this slot should occupy in the direction of the panel. | Components/StackBoxSlot.h |
|
| Slot | SStackBox::FSlot * | A raw pointer to the slot to allow us to adjust the size, padding...etc at runtime. | Components/StackBoxSlot.h | |
| VerticalAlignment | TEnumAsByte< EVerticalAlignment > | The alignment of the object vertically. | Components/StackBoxSlot.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void BuildSlot
(
TSharedRef< SStackBox > InBox |
Builds the underlying FSlot for the Slate layout panel. | Components/StackBoxSlot.h | |
EHorizontalAlignment GetHorizontalAlignment() |
Components/StackBoxSlot.h | ||
FMargin GetPadding() |
Components/StackBoxSlot.h | ||
FSlateChildSize GetSize() |
Components/StackBoxSlot.h | ||
EVerticalAlignment GetVerticalAlignment() |
Components/StackBoxSlot.h | ||
void ReplaceContent
(
UWidget* Content |
Replace the slot content. | Components/StackBoxSlot.h | |
void SetHorizontalAlignment
(
EHorizontalAlignment InHorizontalAlignment |
Components/StackBoxSlot.h | ||
void SetPadding
(
FMargin InPadding |
Components/StackBoxSlot.h | ||
void SetSize
(
FSlateChildSize InSize |
Components/StackBoxSlot.h | ||
void SetVerticalAlignment
(
EVerticalAlignment InVerticalAlignment |
Components/StackBoxSlot.h |
Overridden from UPanelSlot
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool NudgeByDesigner
(
const FVector2D& NudgeDirection, |
Called by the designer to "nudge" a widget in a direction. | Components/StackBoxSlot.h | |
virtual void SynchronizeFromTemplate
(
const UPanelSlot*const TemplateSlot |
Called by the designer when a design-time widget needs to have changes to its associated template synchronized. | Components/StackBoxSlot.h | |
virtual void SynchronizeProperties() |
Applies all properties to the live slot if possible. | Components/StackBoxSlot.h |
Overridden from UVisual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ReleaseSlateResources
(
bool bReleaseChildren |
Components/StackBoxSlot.h |