UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
VerticalBoxSlot.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"
8#include "Layout/Margin.h"
11#include "Widgets/SBoxPanel.h"
12
13#include "VerticalBoxSlot.generated.h"
14
16UCLASS(MinimalAPI)
18{
20
21public:
22
23 UE_DEPRECATED(5.1, "Direct access to Size is deprecated. Please use the getter or setter.")
25 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, BlueprintSetter="SetSize", Category="Layout|Vertical Box Slot", meta = (DisplayAfter = "Padding"))
27
28 UE_DEPRECATED(5.1, "Direct access to Padding is deprecated. Please use the getter or setter.")
30 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, BlueprintSetter="SetPadding", Category="Layout|Vertical Box Slot")
32
33 UE_DEPRECATED(5.1, "Direct access to HorizontalAlignment is deprecated. Please use the getter or setter.")
35 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, BlueprintSetter="SetHorizontalAlignment", Category="Layout|Vertical Box Slot")
36 TEnumAsByte<EHorizontalAlignment> HorizontalAlignment;
37
38 UE_DEPRECATED(5.1, "Direct access to VerticalAlignment is deprecated. Please use the getter or setter.")
40 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, BlueprintSetter="SetVerticalAlignment", Category="Layout|Vertical Box Slot")
41 TEnumAsByte<EVerticalAlignment> VerticalAlignment;
42
44
46 SVerticalBox::FSlot* Slot;
47
48public:
49
50 UMG_API FMargin GetPadding() const;
51
52 UFUNCTION(BlueprintCallable, Category="Layout|Vertical Box Slot")
53 UMG_API void SetPadding(FMargin InPadding);
54
55 UMG_API FSlateChildSize GetSize() const;
56
57 UFUNCTION(BlueprintCallable, Category="Layout|Vertical Box Slot")
58 UMG_API void SetSize(FSlateChildSize InSize);
59
60 UMG_API EHorizontalAlignment GetHorizontalAlignment() const;
61
62 UFUNCTION(BlueprintCallable, Category="Layout|Vertical Box Slot")
63 UMG_API void SetHorizontalAlignment(EHorizontalAlignment InHorizontalAlignment);
64
65 UMG_API EVerticalAlignment GetVerticalAlignment() const;
66
67 UFUNCTION(BlueprintCallable, Category="Layout|Vertical Box Slot")
68 UMG_API void SetVerticalAlignment(EVerticalAlignment InVerticalAlignment);
69
70public:
71
72 // UPanelSlot interface
73 UMG_API virtual void SynchronizeProperties() override;
74 // End of UPanelSlot interface
75
76 UMG_API virtual void ReleaseSlateResources(bool bReleaseChildren) override;
77
80
81#if WITH_EDITOR
83 UMG_API virtual void SynchronizeFromTemplate(const UPanelSlot* const TemplateSlot) override;
84#endif //WITH_EDITOR
85};
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
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 UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
EHorizontalAlignment
Definition SlateEnums.h:174
EVerticalAlignment
Definition SlateEnums.h:194
uint32 Size
Definition VulkanMemory.cpp:4034
Definition SBoxPanel.h:322
Definition EnumAsByte.h:22
Definition SharedPointer.h:153
Definition PanelSlot.h:13
Definition VerticalBoxSlot.h:18
Definition Margin.h:17
Definition SlateWrapperTypes.h:145
Definition Optional.h:131