UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
WidgetSwitcherSlot.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
12#include "WidgetSwitcherSlot.generated.h"
13
14class UWidget;
15
17UCLASS(MinimalAPI)
19{
21
22private:
23 //TODO UMG Slots should hold weak or shared refs to slots.
24
27
28public:
29
30 UE_DEPRECATED(5.1, "Direct access to Padding is deprecated. Please use the getter or setter.")
32 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, BlueprintSetter="SetPadding", Category="Layout|Widget Switcher Slot")
34
35 UE_DEPRECATED(5.1, "Direct access to HorizontalAlignment is deprecated. Please use the getter or setter.")
37 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, BlueprintSetter="SetHorizontalAlignment", Category="Layout|Widget Switcher Slot")
38 TEnumAsByte<EHorizontalAlignment> HorizontalAlignment;
39
40 UE_DEPRECATED(5.1, "Direct access to VerticalAlignment is deprecated. Please use the getter or setter.")
42 UPROPERTY(EditAnywhere, BlueprintReadWrite, Setter, BlueprintSetter="SetVerticalAlignment", Category="Layout|Widget Switcher Slot")
43 TEnumAsByte<EVerticalAlignment> VerticalAlignment;
44
45public:
46
47 UMG_API FMargin GetPadding() const;
48
49 UFUNCTION(BlueprintCallable, Category="Layout|Widget Switcher Slot")
50 UMG_API void SetPadding(FMargin InPadding);
51
52 UMG_API EHorizontalAlignment GetHorizontalAlignment() const;
53
54 UFUNCTION(BlueprintCallable, Category="Layout|Widget Switcher Slot")
55 UMG_API void SetHorizontalAlignment(EHorizontalAlignment InHorizontalAlignment);
56
57 UMG_API EVerticalAlignment GetVerticalAlignment() const;
58
59 UFUNCTION(BlueprintCallable, Category="Layout|Widget Switcher Slot")
60 UMG_API void SetVerticalAlignment(EVerticalAlignment InVerticalAlignment);
61
62public:
63
64 //~ UPanelSlot interface
66 //~ End of UPanelSlot interface
67
69
72
74 UMG_API void SetContent(UWidget* NewContent);
75};
#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 BasicLayoutWidgetSlot.h:646
Definition SWidgetSwitcher.h:23
Definition EnumAsByte.h:22
Definition SharedPointer.h:153
Definition PanelSlot.h:13
virtual UMG_API void ReleaseSlateResources(bool bReleaseChildren)
Definition Visual.cpp:16
Definition WidgetSwitcherSlot.h:19
Definition Widget.h:217
TObjectPtr< UPanelSlot > Slot
Definition Widget.h:264
virtual UMG_API void SynchronizeProperties()
Definition Widget.cpp:1458
Definition Margin.h:17