Files
UnrealEngineUWP/Engine/Plugins/Runtime/ModelViewViewModel/Source/ModelViewViewModelBlueprint/Public/Bindings/MVVMConversionFunctionHelper.h
Patrick Boutot 1022bd41a2 Move function from the MVVM editor module to the blueprint compiler module.
#preflight 62da87adac71f3a225a75336

[CL 21219105 by Patrick Boutot in ue5-main branch]
2022-07-22 07:39:25 -04:00

26 lines
1002 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "MVVMPropertyPath.h"
class UClass;
class UEdGraph;
class UMVVMBlueprintView;
class UWidgetBlueprint;
struct FMVVMBlueprintViewBinding;
namespace UE::MVVM::ConversionFunctionHelper
{
/** Find all BlueprintPropertyPath used in the Graph. */
MODELVIEWVIEWMODELBLUEPRINT_API TArray<FMVVMBlueprintPropertyPath> FindAllPropertyPathInGraph(const UEdGraph* Graph, const UMVVMBlueprintView* View, UClass* Class);
/** Get the name of the conversion function wrapper if autogenerated. */
MODELVIEWVIEWMODELBLUEPRINT_API FName GetWrapperName(const UMVVMBlueprintView* View, const FMVVMBlueprintViewBinding& Binding, bool bSourceToDestination);
/** Get an existing conversion graph for the corresponding binding if it exist. */
MODELVIEWVIEWMODELBLUEPRINT_API UEdGraph* GetGraph(const UWidgetBlueprint* WidgetBlueprint, const FMVVMBlueprintViewBinding& Binding, bool bSourceToDestination);
} //namespace