UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
OverlaySlot.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#include "Widgets/SOverlay.h"
11
12
13#include "OverlaySlot.generated.h"
14
16UCLASS(MinimalAPI)
18{
20
21protected:
22 //TODO UMG Slots should hold weak or shared refs to slots.
23
26
27public:
28
29 UE_DEPRECATED(5.1, "Direct access to Padding is deprecated. Please use the getter or setter.")
31 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter, Setter, BlueprintSetter = SetPadding, Category="Layout|Overlay Slot")
33
34 UE_DEPRECATED(5.1, "Direct access to HorizontalAlignment is deprecated. Please use the getter or setter.")
36 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter, Setter, BlueprintSetter = SetHorizontalAlignment, Category="Layout|Overlay Slot")
37 TEnumAsByte<EHorizontalAlignment> HorizontalAlignment;
38
39 UE_DEPRECATED(5.1, "Direct access to VerticalAlignment is deprecated. Please use the getter or setter.")
41 UPROPERTY(EditAnywhere, BlueprintReadWrite, Getter, Setter, BlueprintSetter = SetVerticalAlignment, Category="Layout|Overlay Slot")
42 TEnumAsByte<EVerticalAlignment> VerticalAlignment;
43
44public:
45
47 UFUNCTION(BlueprintCallable, Category="Layout|Overlay Slot")
48 UMG_API void SetPadding(FMargin InPadding);
49
51 UMG_API FMargin GetPadding() const;
52
54 UFUNCTION(BlueprintCallable, Category="Layout|Overlay Slot")
55 UMG_API void SetHorizontalAlignment(EHorizontalAlignment InHorizontalAlignment);
56
58 UMG_API EHorizontalAlignment GetHorizontalAlignment() const;
59
61 UFUNCTION(BlueprintCallable, Category="Layout|Overlay Slot")
62 UMG_API void SetVerticalAlignment(EVerticalAlignment InVerticalAlignment);
63
65 UMG_API EVerticalAlignment GetVerticalAlignment() const;
66
67public:
68
69 // UPanelSlot interface
70 UMG_API virtual void SynchronizeProperties() override;
71 // End of UPanelSlot interface
72
75
77 UMG_API void ReplaceContent(UWidget* Content);
78
79 UMG_API virtual void ReleaseSlateResources(bool bReleaseChildren) override;
80};
#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 SOverlay.h:50
Definition SOverlay.h:44
Definition EnumAsByte.h:22
Definition SharedPointer.h:153
Definition OverlaySlot.h:18
SOverlay::FOverlaySlot * Slot
Definition OverlaySlot.h:25
Definition PanelSlot.h:13
Definition Widget.h:217
Definition Margin.h:17