UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SizeBoxSlot.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"
10
11#include "SizeBoxSlot.generated.h"
12
13class SBox;
14
16UCLASS(MinimalAPI)
18{
20
21public:
22 UE_DEPRECATED(5.1, "Direct access to Padding is deprecated. Please use the getter or setter.")
24 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, BlueprintSetter="SetPadding", Category="Layout|SizeBox Slot")
26
29 TWeakPtr<SBox> SizeBox;
30
31public:
32 UE_DEPRECATED(5.1, "Direct access to HorizontalAlignment is deprecated. Please use the getter or setter.")
34 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, BlueprintSetter="SetHorizontalAlignment", Category="Layout|SizeBox Slot")
35 TEnumAsByte<EHorizontalAlignment> HorizontalAlignment;
36
37 UE_DEPRECATED(5.1, "Direct access to VerticalAlignment is deprecated. Please use the getter or setter.")
39 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, BlueprintSetter="SetVerticalAlignment", Category="Layout|SizeBox Slot")
40 TEnumAsByte<EVerticalAlignment> VerticalAlignment;
41
42public:
43
44 UMG_API FMargin GetPadding() const;
45
46 UFUNCTION(BlueprintCallable, Category="Layout|SizeBox Slot")
48
49 UMG_API EHorizontalAlignment GetHorizontalAlignment() const;
50
51 UFUNCTION(BlueprintCallable, Category="Layout|SizeBox Slot")
52 UMG_API void SetHorizontalAlignment(EHorizontalAlignment InHorizontalAlignment);
53
54 UMG_API EVerticalAlignment GetVerticalAlignment() const;
55
56 UFUNCTION(BlueprintCallable, Category="Layout|SizeBox Slot")
57 UMG_API void SetVerticalAlignment(EVerticalAlignment InVerticalAlignment);
58
59public:
60
61 //~ UPanelSlot interface
62 UMG_API virtual void SynchronizeProperties() override;
63 //~ End of UPanelSlot interface
64
66 UMG_API void BuildSlot(TSharedRef<SBox> InSizeBox);
67
68 UMG_API virtual void ReleaseSlateResources(bool bReleaseChildren) override;
69};
#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
Definition SBox.h:29
SLATE_API void SetPadding(TAttribute< FMargin > InPadding)
Definition SBox.cpp:79
Definition EnumAsByte.h:22
Definition SharedPointer.h:153
Definition SharedPointer.h:1295
Definition PanelSlot.h:13
Definition SizeBoxSlot.h:18
Definition Margin.h:17