Navigation
API > API/Plugins > API/Plugins/ModelViewViewModel
Instance UMVVMClassExtension_View for the UUserWidget
| Name | UMVVMView |
| Type | class |
| Header File | /Engine/Plugins/Runtime/ModelViewViewModel/Source/ModelViewViewModel/Public/View/MVVMView.h |
| Include Path | #include "View/MVVMView.h" |
Syntax
UCLASS (MinimalAPI, Transient, DisplayName="MVVM View")
class UMVVMView : public UUserWidgetExtension
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UUserWidgetExtension → UMVVMView
Structs
| Name | Remarks |
|---|---|
| FBoundEvent |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bBindingsInitialized | bool | Is the Initialize method called. | View/MVVMView.h |
|
| bConstructed | bool | Is the Construct method called. | View/MVVMView.h |
|
| bEventsInitialized | bool | Is the Initialize method called. | View/MVVMView.h |
|
| bHasDefaultTickBinding | bool | Is the view is registered to the binding subsystem for tick. | View/MVVMView.h |
|
| bLogBinding | bool | Should log when a binding is executed. | View/MVVMView.h |
|
| BlueprintPreCompileHandle | FDelegateHandle | View/MVVMView.h | ||
| BoundEvents | TArray< FBoundEvent > | The event that are registered by the view to the sources. | View/MVVMView.h | |
| bSourcesInitialized | bool | Is the Initialize method called. | View/MVVMView.h |
|
| Extensions | TArray< TObjectPtr< UMVVMViewExtension > > | View/MVVMView.h |
|
|
| GeneratedViewClass | TObjectPtr< const UMVVMViewClass > | View/MVVMView.h |
|
|
| NumberOfSourceWithTickBinding | uint8 | The number of source has at least one binding that need to be ticked every frame. | View/MVVMView.h |
|
| Sources | TArray< FMVVMView_Source > | View/MVVMView.h |
|
|
| ValidSources | uint64 | Bitfield that represents the valid sources. | View/MVVMView.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool AreBindingsInitialized() |
The bindings were initialized, manually or automatically. | View/MVVMView.h |
|
bool AreEventsInitialized() |
The events were initialized, manually or automatically. | View/MVVMView.h |
|
bool AreSourcesInitialized() |
The sources were initialized, manually or automatically. | View/MVVMView.h |
|
virtual void Construct() |
Virtual void Initialize() override; | View/MVVMView.h | |
void ConstructView
(
const UMVVMViewClass* InGeneratedViewClass |
View/MVVMView.h | ||
virtual void Destruct() |
View/MVVMView.h | ||
void ExecuteDelayedBinding
(
const FMVVMViewClass_BindingKey& DelayedBinding |
View/MVVMView.h | ||
void ExecuteTickBindings() |
View/MVVMView.h | ||
bool ExecuteViewModelBindings
(
FName ViewModelName |
Execute all the bindings that use the viewmodel. | View/MVVMView.h |
|
const FMVVMView_Source & GetSource
(
FMVVMView_SourceKey Key |
The source used by the view. | View/MVVMView.h | |
const TArrayView< const FMVVMView_Source > GetSources() |
The list of the sources needed by the view. | View/MVVMView.h | |
const UMVVMViewClass * GetViewClass() |
The shared information for each instance of the view. | View/MVVMView.h | |
TScriptInterface< INotifyFieldValueChanged > GetViewModel
(
FName ViewModelName |
Find and return the viewmodel with the specified name. | View/MVVMView.h |
|
void InitializeBindings () |
Initialize the bindings if they are not already initialized. | View/MVVMView.h |
|
void InitializeEvents() |
Initialize the events if they are not already initialized. | View/MVVMView.h |
|
void InitializeSources () |
Initialize the sources if they are not already initialized. | View/MVVMView.h |
|
bool SetViewModel
(
FName ViewModelName, |
Set the viewmodel of the specified name. | View/MVVMView.h |
|
bool SetViewModelByClass
(
TScriptInterface< INotifyFieldValueChanged > NewValue |
Set the first viewmodel matching the exact specified type. | View/MVVMView.h |
|
void UninitializeBindings() |
Uninitialize the bindings if they are already initialized. | View/MVVMView.h |
|
void UninitializeEvents() |
Uninitialize the events if they are already initialized. | View/MVVMView.h |
|
void UninitializeSources() |
Uninitialize the sources if they are already initialized. It will uninitialized the bindings. | View/MVVMView.h |
|