20 #include <unordered_map> 23 #include <vstgui4/vstgui/lib/iviewlistener.h> 32 using namespace Params;
95 template<
typename TView>
107 void viewWillDelete(CView *iView)
override;
110 std::unordered_map<CView *, std::unique_ptr<ParamAware>> fParamAwareViews{};
116 template<
typename TView>
122 auto iter = fParamAwareViews.find(iView);
124 if(iter == fParamAwareViews.end())
126 iView->registerViewListener(
this);
127 fParamAwareViews[iView] = std::make_unique<ParamAwareView<TView>>(iView);
128 fParamAwareViews[iView]->initState(iGUIState);
Definition: GUIState.h:40
ParamAwareView< TView > * makeParamAware(TView *iView, GUIState *iGUIState)
Definition: ParamAwareViews.h:117
Definition: DrawContext.cpp:24
This class manages the views that have been made "param aware".
Definition: ParamAwareViews.h:86
This subclass allows for registering callbacks to any kind of view without having to inherit from it.
Definition: ParamAware.h:561