49 explicit Creator(
char const *iViewName =
nullptr,
char const *iDisplayName =
nullptr) :
62 template<
typename T,
typename TGUIParam = GUIVstParam<T>>
101 template<
typename T,
typename TGUIParam>
104 if(fControlParameter.exists())
105 return fControlParameter.getValue();
107 return fControlValue;
113 template<
typename T,
typename TGUIParam>
116 if(fControlParameter.exists())
117 fControlParameter.setValue(iControlValue);
120 if(fControlValue != iControlValue)
122 fControlValue = iControlValue;
131 template<
typename T,
typename TGUIParam>
136 __internal__registerVstControl(getControlTag(), fControlValue, fControlParameter);
142 template<
typename T,
typename TGUIParam>
146 registerParameters();
Definition: CustomControlView.h:46
Definition: CustomViewCreator.h:1049
int32_t getControlTag() const
Definition: CustomControlView.h:37
void registerTagAttribute(std::string const &iName, typename TagAttribute::Getter iGetter, typename TagAttribute::Setter iSetter)
Definition: CustomViewCreator.h:874
Definition: CustomControlView.h:63
Definition: CustomView.h:44
virtual void setControlValue(T const &iControlValue)
Definition: CustomControlView.h:114
virtual void setControlTag(int32_t iTag)
Definition: CustomControlView.h:36
virtual void registerParameters()
Definition: GUIParamCxAware.h:239
TGUIParam fControlParameter
Definition: CustomControlView.h:84
TCustomControlView(const CRect &iSize)
Definition: CustomControlView.h:67
void setControlTag(int32_t iTag) override
Definition: CustomControlView.h:143
void registerParameters() override
Definition: CustomControlView.h:132
Creator(char const *iViewName=nullptr, char const *iDisplayName=nullptr)
Definition: CustomControlView.h:49
int32_t fControlTag
Definition: CustomControlView.h:43
T fControlValue
Definition: CustomControlView.h:87
CustomControlView(const CRect &iSize)
Definition: CustomControlView.h:33
Definition: CustomControlView.h:30
T getControlValue() const
Definition: CustomControlView.h:102