UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
VerticalBox.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 "VerticalBox.generated.h"
11
13
21UCLASS(meta = (ShortTooltip = "A layout panel for automatically laying child widgets out vertically"), MinimalAPI)
23{
25
26public:
27
29 UFUNCTION(BlueprintCallable, Category="Panel")
30 UMG_API UVerticalBoxSlot* AddChildToVerticalBox(UWidget* Content);
31
32#if WITH_EDITOR
33 // UWidget interface
34 UMG_API virtual const FText GetPaletteCategory() override;
35 // End UWidget interface
36#endif
37
38protected:
39
40 // UPanelWidget
41 UMG_API virtual UClass* GetSlotClass() const override;
42 UMG_API virtual void OnSlotAdded(UPanelSlot* Slot) override;
43 UMG_API virtual void OnSlotRemoved(UPanelSlot* Slot) override;
44 // End UPanelWidget
45
46 UMG_API virtual void ReleaseSlateResources(bool bReleaseChildren) override;
47
48protected:
49
51
52protected:
53 // UWidget interface
54 UMG_API virtual TSharedRef<SWidget> RebuildWidget() override;
55 // End of UWidget interface
56};
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 PanelSlot.h:13
Definition PanelWidget.h:15
Definition VerticalBoxSlot.h:18
virtual UMG_API void ReleaseSlateResources(bool bReleaseChildren) override
Definition VerticalBoxSlot.cpp:23
Definition VerticalBox.h:23
TSharedPtr< class SVerticalBox > MyVerticalBox
Definition VerticalBox.h:50
Definition Widget.h:217