Navigation
API > API/Plugins > API/Plugins/ModelViewViewModel > API/Plugins/ModelViewViewModel/View
References
| Module | ModelViewViewModel |
| Header | /Engine/Plugins/Runtime/ModelViewViewModel/Source/ModelViewViewModel/Public/View/MVVMViewClass.h |
| Include | #include "View/MVVMViewClass.h" |
Syntax
USTRUCT ()
struct FMVVMViewClass_Source
Remarks
Shared data to find or create a ViewModel at runtime.
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | When a source is manually set, then always execute that source the bindings. | ||
| bool | The source "GetOrCreateInstance" can be reevaluated. | ||
| bool | CanBeSet () |
Can be set at runtime from SetViewModel. | |
| const TArrayView< const FMVVMViewClass_SourceBinding > | GetBindings () |
The list of bindings owns by the source. A binding can be owns by more than one source. | |
| const TArrayView< const FMVVMViewClass_SourceCondition > | |||
| const TArrayView< const FMVVMViewClass_FieldId > | GetFieldIds () |
FieldId owns by the source that we need to register to. | |
| TScriptInterface< INotifyFieldValueChanged > | GetGlobalCollectionViewModel
(
UUserWidget* UserWidget |
Returns the viewmodel inside the global viewmodel collection. | |
| FName | GetName () |
The name of the source. | |
| UObject * | GetOrCreateInstance
(
const UMVVMViewClass* ViewClass, |
Get or create the instance used to register the bindings. | |
| UClass * | The expected class of the source. | ||
| FName | The name of the UserWidget's property. | ||
| bool | The source has at least one evaluate binding. | ||
| bool | The source has at least one binding that need to be tick every frame. | ||
| bool | IsOptional () |
The source GetOrCreateInstance can fail. | |
| bool | IsUserWidget () |
The source is the UserWidget. | |
| bool | The source is UserWidget's property. | ||
| bool | IsViewModel () |
The source is a viewmodel added in the editor. | |
| void | ReleaseInstance
(
const UObject* ViewModel, |
The source is not needed anymore. | |
| bool | The source has at least one evaluate binding. | ||
| bool | The UserWidget's property need to be set/reset when the Source is created/release. |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EFlags |