UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
StackBox.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 "Types/SlateEnums.h"
8#include "StackBox.generated.h"
9
10class UStackBoxSlot;
11class SStackBox;
12
20UCLASS(meta = (ShortTooltip = "A layout panel for automatically laying child widgets out vertically or horizontally"), MinimalAPI)
22{
24
25public:
27
28private:
30 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, Getter, Category = "Behavior", meta = (AllowPrivateAccess = "true"))
32
33public:
38
40 UFUNCTION(BlueprintCallable, Category="Panel")
41 UMG_API UStackBoxSlot* AddChildToStackBox(UWidget* Content);
42
44 UFUNCTION(BlueprintCallable, Category = "Panel")
45 UMG_API bool ReplaceStackBoxChildAt(int32 Index, UWidget* Content);
46
47#if WITH_EDITOR
48 //~ UWidget interface
49 UMG_API virtual const FText GetPaletteCategory() override;
50 //~ End UWidget interface
51#endif
52
53protected:
54 //~ UPanelWidget
55 UMG_API virtual UClass* GetSlotClass() const override;
56 UMG_API virtual void OnSlotAdded(UPanelSlot* Slot) override;
57 UMG_API virtual void OnSlotRemoved(UPanelSlot* Slot) override;
58 UMG_API virtual TSharedRef<SWidget> RebuildWidget() override;
59 UMG_API virtual void SynchronizeProperties() override;
60 //~ End UPanelWidget
61
62 UMG_API virtual void ReleaseSlateResources(bool bReleaseChildren) override;
63
64private:
66};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define UCLASS(...)
Definition ObjectMacros.h:776
EOrientation
Definition SlateEnums.h:261
Definition Text.h:385
Definition SBoxPanel.h:475
static FSlot::FSlotArguments Slot()
Definition SBoxPanel.h:535
EOrientation GetOrientation() const
Definition SBoxPanel.h:149
SLATECORE_API void SetOrientation(EOrientation InOrientation)
Definition SBoxPanel.cpp:221
Definition EnumAsByte.h:22
Definition SharedPointer.h:692
Definition SharedPointer.h:153
Definition Class.h:3793
Definition PanelSlot.h:13
Definition PanelWidget.h:15
Definition StackBoxSlot.h:18
Definition StackBox.h:22
Definition Widget.h:217
U16 Index
Definition radfft.cpp:71