UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
PanelSlot.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 "Components/Visual.h"
8#include "PanelSlot.generated.h"
9
11UCLASS(BlueprintType, MinimalAPI)
13{
15
16public:
17
18 UPROPERTY(Instanced)
20
21 UPROPERTY(Instanced)
23
24 UFUNCTION(BlueprintCallable, Category = "Layout|Panel Slot")
25 UMG_API UWidget* GetContent() const;
26
27#if WITH_EDITOR
28 UMG_API bool IsDesignTime() const;
29#else
30 inline bool IsDesignTime() const { return false; }
31#endif
32
33 UMG_API virtual void ReleaseSlateResources(bool bReleaseChildren) override;
34
36 virtual void SynchronizeProperties()
37 {
38 }
39
40#if WITH_EDITOR
41 virtual void PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent) override
42 {
43 Super::PostEditChangeProperty(PropertyChangedEvent);
44
45 SynchronizeProperties();
46 }
47
51 virtual bool NudgeByDesigner(const FVector2D& NudgeDirection, const TOptional<int32>& GridSnapSize) { return false; }
52
57
61 virtual void SynchronizeFromTemplate(const UPanelSlot* const TemplateSlot) {};
62#endif
63};
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
Definition PanelSlot.h:13
bool IsDesignTime() const
Definition PanelSlot.h:30
virtual void SynchronizeProperties()
Definition PanelSlot.h:36
Definition PanelWidget.h:15
Definition Visual.h:13
Definition Widget.h:217
Definition UnrealType.h:6865
Definition ObjectPtr.h:488
Definition Optional.h:131