UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ContentWidget.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 "ContentWidget.generated.h"
9
11UCLASS(Abstract, MinimalAPI)
13{
15
16public:
18 UFUNCTION(BlueprintCallable, Category="Widget|Panel")
19 UMG_API UPanelSlot* GetContentSlot() const;
20
22 UFUNCTION(BlueprintCallable, Category="Widget|Panel")
23 UMG_API UPanelSlot* SetContent(UWidget* Content);
24
26 UFUNCTION(BlueprintCallable, Category="Widget|Panel")
27 UMG_API UWidget* GetContent() const;
28
29protected:
30
31 // UPanelWidget
32 UMG_API virtual UClass* GetSlotClass() const override;
33 // End UPanelWidget
34};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition Class.h:3793
Definition ContentWidget.h:13
Definition PanelSlot.h:13
Definition PanelWidget.h:15
Definition Widget.h:217