UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SafeZone.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"
10#include "SafeZone.generated.h"
11
27UCLASS(MinimalAPI)
29{
31public:
33
34#if WITH_EDITOR
35 UMG_API virtual const FText GetPaletteCategory() override;
36
38#endif
39
40 UMG_API virtual void OnSlotAdded( UPanelSlot* Slot ) override;
41 UMG_API virtual void OnSlotRemoved( UPanelSlot* Slot ) override;
42 UMG_API virtual UClass* GetSlotClass() const override;
43
44 UMG_API void UpdateWidgetProperties();
45
46 UFUNCTION(BlueprintCallable, Category = "SafeZone")
47 UMG_API void SetSidesToPad(bool InPadLeft, bool InPadRight, bool InPadTop, bool InPadBottom);
48
49public:
50
51 UE_DEPRECATED(5.2, "Direct access to PadLeft is deprecated. Please use the getter or setter.")
53 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter, Setter, Category = "SafeZone")
54 bool PadLeft;
55
56 UE_DEPRECATED(5.2, "Direct access to PadRight is deprecated. Please use the getter or setter.")
58 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter, Setter, Category = "SafeZone")
59 bool PadRight;
60
61 UE_DEPRECATED(5.2, "Direct access to PadTop is deprecated. Please use the getter or setter.")
63 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter, Setter, Category = "SafeZone")
64 bool PadTop;
65
66 UE_DEPRECATED(5.2, "Direct access to PadBottom is deprecated. Please use the getter or setter.")
68 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter, Setter, Category = "SafeZone")
69 bool PadBottom;
70
72 // UWidget interface
73 UMG_API virtual TSharedRef<SWidget> RebuildWidget() override;
74 // End of UWidget interface
75
76 UMG_API virtual void ReleaseSlateResources(bool bReleaseChildren) override;
77
78 UMG_API void SetPadLeft(bool InPadLeft);
79 UMG_API bool GetPadLeft() const;
80
81 UMG_API void SetPadRight(bool InPadRight);
82 UMG_API bool GetPadRight() const;
83
84 UMG_API void SetPadTop(bool InPadTop);
85 UMG_API bool GetPadTop() const;
86
87 UMG_API void SetPadBottom(bool InPadBottom);
88 UMG_API bool GetPadBottom() const;
89
90 TSharedPtr< class SSafeZone > MySafeZone;
91
92#if WITH_EDITOR
95#endif
96};
#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 UFUNCTION(...)
Definition ObjectMacros.h:745
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Text.h:385
Definition SSafeZone.h:30
Definition SWidget.h:165
Definition SharedPointer.h:692
Definition SharedPointer.h:153
Definition Class.h:3793
Definition ContentWidget.h:13
Definition PanelSlot.h:13
Definition SafeZone.h:29
Definition Optional.h:131