UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
HorizontalBox.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7#include "Widgets/SWidget.h"
8#include "Widgets/SBoxPanel.h"
10#include "HorizontalBox.generated.h"
11
13
20UCLASS(meta = (ShortTooltip = "A layout panel for automatically laying child widgets out horizontally"), MinimalAPI)
22{
24
25
26 UFUNCTION(BlueprintCallable, Category="Widget")
27 UMG_API UHorizontalBoxSlot* AddChildToHorizontalBox(UWidget* Content);
28
29#if WITH_EDITOR
30 // UWidget interface
31 UMG_API virtual const FText GetPaletteCategory() override;
32 // End UWidget interface
33#endif
34
35 UMG_API virtual void ReleaseSlateResources(bool bReleaseChildren) override;
36
37protected:
38
39 // UPanelWidget
40 UMG_API virtual UClass* GetSlotClass() const override;
41 UMG_API virtual void OnSlotAdded(UPanelSlot* Slot) override;
42 UMG_API virtual void OnSlotRemoved(UPanelSlot* Slot) override;
43 // End UPanelWidget
44
45protected:
46
48
49protected:
50 // UWidget interface
51 UMG_API virtual TSharedRef<SWidget> RebuildWidget() override;
52 // End of UWidget interface
53};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Text.h:385
Definition SharedPointer.h:692
Definition SharedPointer.h:153
Definition Class.h:3793
Definition HorizontalBoxSlot.h:17
virtual UMG_API void ReleaseSlateResources(bool bReleaseChildren) override
Definition HorizontalBoxSlot.cpp:23
Definition HorizontalBox.h:22
TSharedPtr< class SHorizontalBox > MyHorizontalBox
Definition HorizontalBox.h:47
Definition PanelSlot.h:13
Definition PanelWidget.h:15
Definition Widget.h:217