Navigation
API > API/Plugins > API/Plugins/ModelViewViewModel
Shared between every instances of the same View class.
| Name | UMVVMViewClass |
| Type | class |
| Header File | /Engine/Plugins/Runtime/ModelViewViewModel/Source/ModelViewViewModel/Public/View/MVVMViewClass.h |
| Include Path | #include "View/MVVMViewClass.h" |
Syntax
UCLASS (MinimalAPI)
class UMVVMViewClass : public UWidgetBlueprintGeneratedClassExtension
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UWidgetBlueprintGeneratedClassExtension → UMVVMViewClass
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bCreateViewWithoutBindings | bool | View/MVVMViewClass.h | ||
| BindingLibrary | FMVVMCompiledBindingLibrary | All the bindings shared between all the View instance. | View/MVVMViewClass.h | |
| Bindings | TArray< FMVVMViewClass_Binding > | View/MVVMViewClass.h |
|
|
| bInitializeBindingsOnConstruct | bool | View/MVVMViewClass.h | ||
| bInitializeEventsOnConstruct | bool | View/MVVMViewClass.h | ||
| bInitializeSourcesOnConstruct | bool | View/MVVMViewClass.h | ||
| bListenToViewModelCollectionChanged | bool | View/MVVMViewClass.h | ||
| BlueprintCompiledHandle | FDelegateHandle | View/MVVMViewClass.h | ||
| Conditions | TArray< FMVVMViewClass_Condition > | View/MVVMViewClass.h |
|
|
| EvaluateSources | TArray< FMVVMViewClass_EvaluateSource > | View/MVVMViewClass.h |
|
|
| Events | TArray< FMVVMViewClass_Event > | View/MVVMViewClass.h |
|
|
| OptionalSources | uint64 | Which view source are optional. | View/MVVMViewClass.h | |
| Sources | TArray< FMVVMViewClass_Source > | View/MVVMViewClass.h |
|
|
| ViewClassExtensions | TArray< TObjectPtr< UMVVMViewClassExtension > > | All MVVM extensions on widgets of the owning userwidget. | View/MVVMViewClass.h |
|
| ViewCounter | int32 | View/MVVMViewClass.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginDestroy() |
View/MVVMViewClass.h | ||
virtual void Construct
(
UUserWidget* UserWidget |
View/MVVMViewClass.h | ||
virtual void Destruct
(
UUserWidget* UserWidget |
View/MVVMViewClass.h | ||
bool DoesInitializeBindingsOnConstruct() |
Should it automatically register and execute the bindings when the view is constructed. | View/MVVMViewClass.h | |
bool DoesInitializeEventsOnConstruct() |
Should it automatically register the events when the view is constructed. | View/MVVMViewClass.h | |
bool DoesInitializeSourcesOnConstruct() |
Should it automatically create the binding sources when the view is constructed. | View/MVVMViewClass.h | |
bool DoesListenToViewModelCollectionChanged() |
Should the view listen to modification made in the global viewmodel collection. | View/MVVMViewClass.h | |
const FMVVMViewClass_Binding & GetBinding
(
FMVVMViewClass_BindingKey Key |
The binding (can be shared by more than one source). | View/MVVMViewClass.h | |
const FMVVMCompiledBindingLibrary & GetBindingLibrary() |
Get the container of all the bindings. | View/MVVMViewClass.h | |
const TArrayView< const FMVVMViewClass_Binding > GetBindings() |
The list of bindings. A binding can be used by more than one source. | View/MVVMViewClass.h | |
const FMVVMViewClass_Condition & GetCondition
(
FMVVMViewClass_ConditionKey Key |
The condition. | View/MVVMViewClass.h | |
const TArrayView< const FMVVMViewClass_Condition > GetConditions() |
The list of conditions. | View/MVVMViewClass.h | |
const FMVVMViewClass_EvaluateSource & GetEvaluateSource
(
FMVVMViewClass_EvaluateBindingKey Key |
The evaluate binding. | View/MVVMViewClass.h | |
const TArrayView< const FMVVMViewClass_EvaluateSource > GetEvaluateSources() |
The list of evaluate bindings. | View/MVVMViewClass.h | |
const FMVVMViewClass_Event & GetEvent
(
FMVVMViewClass_EventKey Key |
The event. | View/MVVMViewClass.h | |
const TArrayView< const FMVVMViewClass_Event > GetEvents() |
The list of events. | View/MVVMViewClass.h | |
uint64 GetOptionalSources() |
The field of all the sources that are optional. | View/MVVMViewClass.h | |
const FMVVMViewClass_Source & GetSource
(
FMVVMViewClass_SourceKey Key |
The shared source used by the view. | View/MVVMViewClass.h | |
const TArrayView< const FMVVMViewClass_Source > GetSources() |
Get the list of all the needed viewmodel or widgets. | View/MVVMViewClass.h | |
const TArrayView< const TObjectPtr< UMVVMViewClassExtension > > GetViewClassExtensions() |
The list of extensions for widgets. | View/MVVMViewClass.h | |
virtual void Initialize
(
UUserWidget* UserWidget |
View/MVVMViewClass.h | ||
bool IsCreatedWithoutBindings() |
Should the view be created even when there are no bindings or events. | View/MVVMViewClass.h |