TnxViewModelBase class
#include <Runtime/UI/Public/TnxViewModel.h>
The non-template part of a view model: its target, and how readers reach its values.
Derived classes
-
template<typename T>class TnxViewModel
- One set of a view model's values, readable by bindings while it lives. Set from any thread.
Constructors, destructors, conversion operators
- TnxViewModelBase(const TnxViewModelBase&) deleted
-
TnxViewModelBase(TnxViewModels::
TypeInfo type, void* values) protected - A view model of
typewhose values are atvalues(the derived class's). - ~TnxViewModelBase() protected
Public functions
- auto operator=(const TnxViewModelBase&) -> TnxViewModelBase& deleted
-
auto GetTarget() const -> GGUI::
BindTarget - What bindings to its values read: TnxBind and TnxContext use it.
- auto GetTypeName() const -> std::string_view
- Its type's TNX_VIEW_MODEL name.
Protected functions
Protected variables
- std::mutex Lock
- values are written on any thread and read by UI updates