You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
[REVIEW] [at]patrick.boutot
#jira UE-145128
#rnx
#preflight 6287737b1e478b95c703f783
#ROBOMERGE-AUTHOR: sebastian.nordgren
#ROBOMERGE-SOURCE: CL 20293477 via CL 20293498 via CL 20293511
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v948-20297126)
[CL 20305090 by sebastian nordgren in ue5-main branch]
72 lines
1.9 KiB
C++
72 lines
1.9 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "MVVMPropertyPath.h"
|
|
#include "Types/MVVMBindingMode.h"
|
|
|
|
#include "MVVMBlueprintViewBinding.generated.h"
|
|
|
|
class UMVVMBlueprintView;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
USTRUCT(BlueprintType)
|
|
struct FMVVMBlueprintViewConversionPath
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
/** The Conversion function when converting the value from the destination to the source. */
|
|
UPROPERTY(EditAnywhere, Category = "MVVM", AdvancedDisplay)
|
|
FMemberReference DestinationToSourceFunction;
|
|
|
|
/** The Conversion function when converting the value from the source to the destination. */
|
|
UPROPERTY(EditAnywhere, Category = "MVVM", AdvancedDisplay)
|
|
FMemberReference SourceToDestinationFunction;
|
|
};
|
|
|
|
/**
|
|
*
|
|
*/
|
|
USTRUCT(BlueprintType)
|
|
struct FMVVMBlueprintViewBinding
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
UPROPERTY(EditAnywhere, Category = "MVVM")
|
|
FMVVMBlueprintPropertyPath ViewModelPath;
|
|
|
|
UPROPERTY(EditAnywhere, Category = "MVVM")
|
|
FMVVMBlueprintPropertyPath WidgetPath;
|
|
|
|
/** */
|
|
UPROPERTY(EditAnywhere, Category = "MVVM")
|
|
EMVVMBindingMode BindingType = EMVVMBindingMode::OneWayToDestination;
|
|
|
|
UPROPERTY(EditAnywhere, Category = "MVVM")
|
|
EMVVMViewBindingUpdateMode UpdateMode = EMVVMViewBindingUpdateMode::Immediate;
|
|
|
|
/** */
|
|
UPROPERTY(EditAnywhere, Category = "MVVM")
|
|
FMVVMBlueprintViewConversionPath Conversion;
|
|
|
|
/** */
|
|
UPROPERTY(VisibleAnywhere, Category = "MVVM", Transient)
|
|
TArray<FText> Errors;
|
|
|
|
/** Whether the binding is enabled or disabled by default. The instance may enable the binding at runtime. */
|
|
UPROPERTY(EditAnywhere, Category = "MVVM")
|
|
bool bEnabled = true;
|
|
|
|
/** The binding is visible in the editor, but is not compiled and cannot be used at runtime. */
|
|
UPROPERTY(EditAnywhere, Category = "MVVM")
|
|
bool bCompile = true;
|
|
|
|
/**
|
|
* Get a string that identifies this binding.
|
|
* This is of the form: ViewModel.Property -> Widget.Property
|
|
*/
|
|
FString GetNameString(const UMVVMBlueprintView* View) const;
|
|
};
|