Files
UnrealEngineUWP/Engine/Plugins/Runtime/ModelViewViewModel/Source/ModelViewViewModelBlueprint/Public/Bindings/MVVMConversionFunctionHelper.h

26 lines
1002 B
C
Raw Normal View History

// 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