UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Overlay.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"
8#include "Widgets/SOverlay.h"
10#include "Overlay.generated.h"
11
12class UOverlaySlot;
13
17UCLASS(MinimalAPI)
19{
21
22 UMG_API virtual void ReleaseSlateResources(bool bReleaseChildren) override;
23
25 UFUNCTION(BlueprintCallable, Category="Widget")
26 UMG_API UOverlaySlot* AddChildToOverlay(UWidget* Content);
27
29 UFUNCTION(BlueprintCallable, Category = "Panel")
30 UMG_API bool ReplaceOverlayChildAt(int32 Index, UWidget* Content);
31
32#if WITH_EDITOR
33 UMG_API virtual const FText GetPaletteCategory() override;
34#endif
35
36protected:
37
38 // UPanelWidget
39 UMG_API virtual UClass* GetSlotClass() const override;
40 UMG_API virtual void OnSlotAdded(UPanelSlot* Slot) override;
41 UMG_API virtual void OnSlotRemoved(UPanelSlot* Slot) override;
42 // End UPanelWidget
43
44protected:
45
47
48protected:
49 // UWidget interface
50 UMG_API virtual TSharedRef<SWidget> RebuildWidget() override;
51 // End of UWidget interface
52};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
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 Text.h:385
Definition SharedPointer.h:692
Definition SharedPointer.h:153
Definition Class.h:3793
Definition OverlaySlot.h:18
virtual UMG_API void ReleaseSlateResources(bool bReleaseChildren) override
Definition OverlaySlot.cpp:20
SOverlay::FOverlaySlot * Slot
Definition OverlaySlot.h:25
Definition Overlay.h:19
TSharedPtr< class SOverlay > MyOverlay
Definition Overlay.h:46
Definition PanelSlot.h:13
Definition PanelWidget.h:15
Definition Widget.h:217
U16 Index
Definition radfft.cpp:71