Navigation
API > API/Runtime > API/Runtime/UMG
The Slot for the USizeBoxSlot, contains the widget displayed in a button's single slot
| Name | USizeBoxSlot |
| Type | class |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/SizeBoxSlot.h |
| Include Path | #include "Components/SizeBoxSlot.h" |
Syntax
UCLASS (MinimalAPI)
class USizeBoxSlot : public UPanelSlot
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UVisual → UPanelSlot → USizeBoxSlot
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
USizeBoxSlot
(
const FObjectInitializer& ObjectInitializer |
Components/SizeBoxSlot.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| HorizontalAlignment | TEnumAsByte< EHorizontalAlignment > | The alignment of the object horizontally. | Components/SizeBoxSlot.h |
|
| Padding | FMargin | The padding area between the slot and the content it contains. | Components/SizeBoxSlot.h |
|
| VerticalAlignment | TEnumAsByte< EVerticalAlignment > | The alignment of the object vertically. | Components/SizeBoxSlot.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| SizeBox | TWeakPtr< SBox > | A pointer to the button to allow us to adjust the size, padding...etc at runtime. | Components/SizeBoxSlot.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void BuildSlot
(
TSharedRef< SBox > InSizeBox |
Builds the underlying slot for the slate SizeBox. | Components/SizeBoxSlot.h | |
EHorizontalAlignment GetHorizontalAlignment() |
Components/SizeBoxSlot.h | ||
FMargin GetPadding() |
Components/SizeBoxSlot.h | ||
EVerticalAlignment GetVerticalAlignment() |
Components/SizeBoxSlot.h | ||
void SetHorizontalAlignment
(
EHorizontalAlignment InHorizontalAlignment |
Components/SizeBoxSlot.h |
|
|
void SetPadding
(
FMargin InPadding |
Components/SizeBoxSlot.h |
|
|
void SetVerticalAlignment
(
EVerticalAlignment InVerticalAlignment |
Components/SizeBoxSlot.h |
|
Overridden from UPanelSlot
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void SynchronizeProperties() |
Applies all properties to the live slot if possible. | Components/SizeBoxSlot.h |
Overridden from UVisual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ReleaseSlateResources
(
bool bReleaseChildren |
Components/SizeBoxSlot.h |