You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#preflight 62471b2edc6183e3f51a8a07 #preflight 62473c85f73c316f680acef9 [CL 19592606 by Patrick Boutot in ue5-main branch]
68 lines
1.9 KiB
C++
68 lines
1.9 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "WidgetBlueprintExtension.h"
|
|
|
|
#include "MVVMWidgetBlueprintExtension_View.generated.h"
|
|
|
|
class UMVVMBlueprintView;
|
|
class FWidgetBlueprintCompilerContext;
|
|
class UWidgetBlueprintGeneratedClass;
|
|
|
|
namespace UE::MVVM::Private
|
|
{
|
|
struct FMVVMViewBlueprintCompiler;
|
|
} //namespace
|
|
|
|
/**
|
|
*
|
|
*/
|
|
UCLASS()
|
|
class MODELVIEWVIEWMODELBLUEPRINT_API UMVVMWidgetBlueprintExtension_View : public UWidgetBlueprintExtension
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
void CreateBlueprintViewInstance();
|
|
void DestroyBlueprintViewInstance();
|
|
|
|
UMVVMBlueprintView* GetBlueprintView()
|
|
{
|
|
return BlueprintView;
|
|
}
|
|
|
|
const UMVVMBlueprintView* GetBlueprintView() const
|
|
{
|
|
return BlueprintView;
|
|
}
|
|
|
|
FSimpleMulticastDelegate& OnBlueprintViewChangedDelegate()
|
|
{
|
|
return BlueprintViewChangedDelegate;
|
|
}
|
|
|
|
public:
|
|
//~ Begin UObject interface
|
|
virtual void PostLoad() override;
|
|
//~ End UObject interface
|
|
|
|
//~ Begin UWidgetBlueprintExtension interface
|
|
virtual void HandlePreloadObjectsForCompilation(UBlueprint* OwningBlueprint) override;
|
|
virtual void HandleBeginCompilation(FWidgetBlueprintCompilerContext& InCreationContext) override;
|
|
virtual void HandleCleanAndSanitizeClass(UWidgetBlueprintGeneratedClass* ClassToClean, UObject* OldCDO) override;
|
|
virtual void HandleCreateClassVariablesFromBlueprint(const FWidgetBlueprintCompilerContext::FCreateVariableContext& Context) override;
|
|
virtual void HandleCreateFunctionList() override;
|
|
virtual void HandleFinishCompilingClass(UWidgetBlueprintGeneratedClass* Class) override;
|
|
virtual void HandleEndCompilation() override;
|
|
//~ End UWidgetBlueprintExtension interface
|
|
|
|
private:
|
|
UPROPERTY(Instanced)
|
|
TObjectPtr<UMVVMBlueprintView> BlueprintView;
|
|
|
|
FSimpleMulticastDelegate BlueprintViewChangedDelegate;
|
|
TPimplPtr<UE::MVVM::Private::FMVVMViewBlueprintCompiler> CurrentCompilerContext;
|
|
};
|