UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
NativeWidgetHost.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
"
6
#include "
UObject/ObjectMacros.h
"
7
#include "
Widgets/SWidget.h
"
8
#include "
Components/Widget.h
"
9
#include "NativeWidgetHost.generated.h"
10
15
UCLASS
(MinimalAPI)
16
class
UNativeWidgetHost
:
public
UWidget
17
{
18
GENERATED_UCLASS_BODY
()
19
20
UMG_API
void
SetContent(
TSharedRef<SWidget>
InContent
);
21
TSharedPtr< SWidget >
GetContent()
const
{
return
NativeWidget; }
22
23
UMG_API
virtual
void
ReleaseSlateResources(
bool
bReleaseChildren
)
override
;
24
25
#if WITH_EDITOR
26
UMG_API
virtual
const
FText
GetPaletteCategory
()
override
;
27
#endif
28
29
protected
:
30
// UWidget interface
31
UMG_API
virtual
TSharedRef<SWidget>
RebuildWidget()
override
;
32
// End of UWidget interface
33
34
UMG_API
TSharedRef<SWidget>
GetDefaultContent();
35
36
protected
:
37
TSharedPtr<SWidget>
NativeWidget
;
38
};
CoreMinimal.h
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
ObjectMacros.h
GENERATED_UCLASS_BODY
#define GENERATED_UCLASS_BODY(...)
Definition
ObjectMacros.h:768
UCLASS
#define UCLASS(...)
Definition
ObjectMacros.h:776
SWidget.h
Widget.h
FText
Definition
Text.h:385
TSharedPtr< SWidget >
TSharedRef
Definition
SharedPointer.h:153
UNativeWidgetHost
Definition
NativeWidgetHost.h:17
UNativeWidgetHost::NativeWidget
TSharedPtr< SWidget > NativeWidget
Definition
NativeWidgetHost.h:37
UWidget
Definition
Widget.h:217
Engine
Source
Runtime
UMG
Public
Components
NativeWidgetHost.h
Generated by
1.9.8