Jamba  3.0.2
pongasoft::VST::GUI::Views::TCustomControlView< T > Class Template Reference

#include <CustomControlView.h>

Inherits pongasoft::VST::GUI::Views::CustomControlView.

Classes

class  Creator
 

Public Member Functions

getControlValue () const
 
void registerParameters () override
 
void setControlTag (int32_t iTag) override
 
virtual void setControlValue (T const &iControlValue)
 
 TCustomControlView (const CRect &iSize)
 
- Public Member Functions inherited from pongasoft::VST::GUI::Views::CustomControlView
 CustomControlView (const CRect &iSize)
 
int32_t getControlTag () const
 
- Public Member Functions inherited from pongasoft::VST::GUI::Views::CustomView
 CustomView (const CRect &iSize)
 
 CustomView (const CustomView &c)=delete
 
void draw (CDrawContext *iContext) override
 
virtual void drawBackColor (CDrawContext *iContext)
 
void drawStyleChanged ()
 
CColor const & getBackColor () const
 
int32_t getCustomViewTag () const
 
bool getEditorMode () const
 
void markDirty ()
 
void onParameterChange (ParamID iParamID) override
 
void setBackColor (CColor const &iColor)
 
void setCustomViewTag (int32_t iTag)
 
void setEditorMode (bool iEditorMode)
 
- Public Member Functions inherited from pongasoft::VST::GUI::Params::GUIParamCxAware
bool __internal__registerRawVstControl (int32_t iParamID, ParamValue &oControlValue, GUIRawVstParam &oGUIRawVstParam)
 
template<typename T >
bool __internal__registerVstControl (int32_t iParamID, T &oControlValue, GUIVstParam< T > &oGUIVstParam)
 
virtual void initState (GUIState *iGUIState)
 
void invokeAll ()
 
GUIRawVstParam registerCallback (RawVstParam const &iParamDef, Parameters::ChangeCallback iChangeCallback, bool iInvokeCallback=false)
 
template<typename T >
GUIVstParam< T > registerCallback (VstParam< T > const &iParamDef, Parameters::ChangeCallback iChangeCallback, bool iInvokeCallback=false)
 
template<typename T >
bool registerCallback (VstParam< T > const &iParamDef, Parameters::ChangeCallback1< GUIVstParam< T >> iChangeCallback, bool iInvokeCallback=false)
 
template<typename T >
GUIJmbParam< T > registerCallback (GUIJmbParam< T > &iParamDef, Parameters::ChangeCallback iChangeCallback, bool iInvokeCallback=false)
 
template<typename T >
bool registerCallback (GUIJmbParam< T > &iParamDef, Parameters::ChangeCallback1< GUIJmbParam< T >> iChangeCallback, bool iInvokeCallback=false)
 
template<typename T >
GUIJmbParam< T > registerJmbCallback (ParamID iParamID, Parameters::ChangeCallback iChangeCallback, bool iInvokeCallback=false)
 
template<typename T >
GUIJmbParam< T > registerJmbParam (ParamID iParamID, bool iSubscribeToChanges=true)
 
GUIRawVstParam registerParam (RawVstParam const &iParamDef, bool iSubscribeToChanges=true)
 
template<typename T >
GUIVstParam< T > registerParam (VstParam< T > const &iParamDef, bool iSubscribeToChanges=true)
 
template<typename T >
GUIJmbParam< T > registerParam (GUIJmbParam< T > &iParamDef)
 
GUIRawVstParam registerRawVstCallback (ParamID iParamID, Parameters::ChangeCallback iChangeCallback, bool iInvokeCallback=false)
 
GUIRawVstParam registerRawVstParam (ParamID iParamID, bool iSubscribeToChanges=true)
 
GUIVstParam< bool > registerVstBooleanParam (ParamID iParamID, bool iSubscribeToChanges=true)
 
template<typename T >
GUIVstParam< T > registerVstCallback (ParamID iParamID, Parameters::ChangeCallback iChangeCallback, bool iInvokeCallback=false)
 
template<typename T >
GUIVstParam< T > registerVstParam (ParamID iParamID, bool iSubscribeToChanges=true)
 
GUIVstParam< PercentregisterVstPercentParam (ParamID iParamID, bool iSubscribeToChanges=true)
 
void unregisterAll ()
 
bool unregisterParam (ParamID iParamID)
 
GUIRawVstParam unregisterParam (GUIRawVstParam const &iParam)
 
template<typename T >
GUIVstParam< T > unregisterParam (GUIVstParam< T > const &iParam)
 
template<typename T >
GUIJmbParam< T > unregisterParam (GUIJmbParam< T > const &iParam)
 
virtual ~GUIParamCxAware ()
 

Protected Attributes

GUIVstParam< T > fControlParameter {}
 
fControlValue {}
 
- Protected Attributes inherited from pongasoft::VST::GUI::Views::CustomControlView
int32_t fControlTag {-1}
 
- Protected Attributes inherited from pongasoft::VST::GUI::Views::CustomView
CColor fBackColor
 
bool fEditorMode
 
int32_t fTag
 
- Protected Attributes inherited from pongasoft::VST::GUI::Params::GUIParamCxAware
std::unique_ptr< GUIParamCxMgrfParamCxMgr {}
 

Additional Inherited Members

- Protected Member Functions inherited from pongasoft::VST::GUI::Views::CustomView
void sizeToFit (CCoord iWidth, CCoord iHeight)
 
bool sizeToFit (BitmapPtr iBitmap, int iFrameCount=1)
 

Detailed Description

template<typename T>
class pongasoft::VST::GUI::Views::TCustomControlView< T >

Base class for custom views providing one parameter only (similar to CControl) This base class automatically registers the custom control and also keeps a control value for the case when the control does not exist (for example in editor the control tag may not be defined).

Constructor & Destructor Documentation

◆ TCustomControlView()

template<typename T>
pongasoft::VST::GUI::Views::TCustomControlView< T >::TCustomControlView ( const CRect &  iSize)
inlineexplicit

Member Function Documentation

◆ getControlValue()

template<typename T >
T pongasoft::VST::GUI::Views::TCustomControlView< T >::getControlValue ( ) const

◆ registerParameters()

template<typename T >
void pongasoft::VST::GUI::Views::TCustomControlView< T >::registerParameters ( )
overridevirtual

Subclasses should override this method to register each parameter

Reimplemented from pongasoft::VST::GUI::Params::GUIParamCxAware.

◆ setControlTag()

template<typename T >
void pongasoft::VST::GUI::Views::TCustomControlView< T >::setControlTag ( int32_t  iTag)
overridevirtual

◆ setControlValue()

template<typename T>
void pongasoft::VST::GUI::Views::TCustomControlView< T >::setControlValue ( T const &  iControlValue)
virtual

Member Data Documentation

◆ fControlParameter

template<typename T>
GUIVstParam<T> pongasoft::VST::GUI::Views::TCustomControlView< T >::fControlParameter {}
protected

◆ fControlValue

template<typename T>
T pongasoft::VST::GUI::Views::TCustomControlView< T >::fControlValue {}
protected

The documentation for this class was generated from the following file: