UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SafeZoneSlot.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"
9
10#include "SafeZoneSlot.generated.h"
11
12class SSafeZone;
13
14UCLASS(MinimalAPI)
16{
18public:
19
20 UE_DEPRECATED(5.2, "Direct access to bIsTitleSafe is deprecated. Please use the getter or setter.")
21 UPROPERTY( EditAnywhere, BlueprintReadWrite, Getter = "IsTitleSafe", Setter = "SetIsTitleSafe", Category = SafeZone)
22 bool bIsTitleSafe;
23
24 UE_DEPRECATED(5.2, "Direct access to SafeAreaScale is deprecated. Please use the getter or setter.")
25 UPROPERTY( EditAnywhere, BlueprintReadWrite, Getter, Setter, Category = SafeZone )
26 FMargin SafeAreaScale;
27
28 UE_DEPRECATED(5.2, "Direct access to HAlign is deprecated. Please use the getter or setter.")
29 UPROPERTY( EditAnywhere, BlueprintReadWrite, Getter = "GetHorizontalAlignment", Setter = "SetHorizontalAlignment", Category = SafeZone)
31
32 UE_DEPRECATED(5.2, "Direct access to VAlign is deprecated. Please use the getter or setter.")
33 UPROPERTY( EditAnywhere, BlueprintReadWrite, Getter = "GetVerticalAlignment", Setter = "SetVerticalAlignment", Category = SafeZone)
35
36 UE_DEPRECATED(5.2, "Direct access to Padding is deprecated. Please use the getter or setter.")
37 UPROPERTY( EditAnywhere, BlueprintReadWrite, Getter, Setter, Category = SafeZone )
39
41
42 UMG_API void SetIsTitleSafe(bool InIsTitleSafe);
43 UMG_API bool IsTitleSafe() const;
44
46 UMG_API const FMargin& GetSafeAreaScale() const;
47
48 UMG_API void SetHorizontalAlignment(EHorizontalAlignment InHAlign);
49 UMG_API const EHorizontalAlignment GetHorizontalAlignment() const;
50
51 UMG_API void SetVerticalAlignment(EVerticalAlignment InVAlign);
52 UMG_API const EVerticalAlignment GetVerticalAlignment() const;
53
55 UMG_API const FMargin& GetPadding() const;
56
57 //~ UPanelSlot interface
58 UMG_API virtual void SynchronizeProperties() override;
59 //~ End of UPanelSlot interface
60
62 UMG_API void BuildSlot(TSharedRef<SSafeZone> InSafeZone);
63
64 UMG_API virtual void ReleaseSlateResources(bool bReleaseChildren) override;
65
67
69 TWeakPtr<SSafeZone> SafeZone;
70};
#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
const bool
Definition NetworkReplayStreaming.h:178
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
EHorizontalAlignment
Definition SlateEnums.h:174
EVerticalAlignment
Definition SlateEnums.h:194
SLATE_API void SetPadding(TAttribute< FMargin > InPadding)
Definition SBox.cpp:79
Definition SSafeZone.h:30
SLATE_API void SetSafeAreaScale(FMargin InSafeAreaScale)
Definition SSafeZone.cpp:180
Definition EnumAsByte.h:22
Definition SharedPointer.h:153
Definition SharedPointer.h:1295
Definition PanelSlot.h:13
Definition SafeZoneSlot.h:16
Definition Margin.h:17