UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ScaleBoxSlot.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 "ScaleBoxSlot.generated.h"
12
13class SScaleBox;
14
16UCLASS(MinimalAPI)
18{
20
21public:
22#if WITH_EDITORONLY_DATA
23 UE_DEPRECATED(5.1, "Padding is not used.")
25 UPROPERTY()
27#endif
28
29 UE_DEPRECATED(5.1, "Direct access to HorizontalAlignment is deprecated. Please use the getter or setter.")
31 UPROPERTY(EditAnywhere, BlueprintReadOnly, Setter, Category="Layout|ScaleBox Slot")
32 TEnumAsByte<EHorizontalAlignment> HorizontalAlignment;
33
34 UE_DEPRECATED(5.1, "Direct access to VerticalAlignment is deprecated. Please use the getter or setter.")
36 UPROPERTY(EditAnywhere, BlueprintReadOnly, Setter, Category="Layout|ScaleBox Slot" )
37 TEnumAsByte<EVerticalAlignment> VerticalAlignment;
38
39public:
40 UE_DEPRECATED(5.1, "SetPadding is deprecated")
41 UFUNCTION(BlueprintCallable, Category="Layout|ScaleBox Slot", meta = (DeprecatedFunction, DeprecatedMessage = "The function is deprecated - There is no padding on ScaleBox."))
42 UMG_API void SetPadding(FMargin InPadding);
43
44 UMG_API EHorizontalAlignment GetHorizontalAlignment() const;
45
46 UFUNCTION(BlueprintCallable, Category="Layout|ScaleBox Slot")
47 UMG_API void SetHorizontalAlignment(EHorizontalAlignment InHorizontalAlignment);
48
49
50 UMG_API EVerticalAlignment GetVerticalAlignment() const;
51
52 UFUNCTION(BlueprintCallable, Category="Layout|ScaleBox Slot")
53 UMG_API void SetVerticalAlignment(EVerticalAlignment InVerticalAlignment);
54
55 //~ UPanelSlot interface
56 UMG_API virtual void SynchronizeProperties() override;
57 //~ End of UPanelSlot interface
58
60 UMG_API void BuildSlot(TSharedRef<SScaleBox> InScaleBox);
61
62 UMG_API virtual void ReleaseSlateResources(bool bReleaseChildren) override;
63
66 TWeakPtr<SScaleBox> ScaleBox;
67};
OODEFFUNC typedef const int const char * function
Definition oodle2.h:710
#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 SScaleBox.h:77
Definition EnumAsByte.h:22
Definition SharedPointer.h:153
Definition SharedPointer.h:1295
Definition PanelSlot.h:13
Definition ScaleBoxSlot.h:18
Definition Margin.h:17