Navigation
API > API/Runtime > API/Runtime/UMG
Allows widgets to be laid out in a flow horizontally.
- Many Children
- Flow Horizontal
| Name | UHorizontalBox |
| Type | class |
| Header File | /Engine/Source/Runtime/UMG/Public/Components/HorizontalBox.h |
| Include Path | #include "Components/HorizontalBox.h" |
Syntax
UCLASS (
Meta=(ShortTooltip="A layout panel for automatically laying child widgets out horizontally"),
MinimalAPI)
class UHorizontalBox : public UPanelWidget
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UVisual → UWidget → UPanelWidget → UHorizontalBox
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UHorizontalBox
(
const FObjectInitializer& ObjectInitializer |
Components/HorizontalBox.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UHorizontalBoxSlot * AddChildToHorizontalBox
(
UWidget* Content |
Components/HorizontalBox.h |
|
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const FText GetPaletteCategory() |
Gets the palette category of the widget | Components/HorizontalBox.h |
Overridden from UVisual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ReleaseSlateResources
(
bool bReleaseChildren |
Components/HorizontalBox.h |
Protected
Overridden from UPanelWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual UClass * GetSlotClass() |
UPanelWidget. | Components/HorizontalBox.h | |
virtual void OnSlotAdded
(
UPanelSlot* Slot |
Components/HorizontalBox.h | ||
virtual void OnSlotRemoved
(
UPanelSlot* Slot |
Components/HorizontalBox.h |
Overridden from UWidget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual TSharedRef< SWidget > RebuildWidget() |
Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | Components/HorizontalBox.h |