An object of this class maintains a connection between a WebComboBoxRelay and a plug-in parameter.
During the lifetime of this object it keeps the two things in sync, making it easy to connect a WebComboBoxRelay to a parameter. When this object is deleted, the connection is broken. Make sure that your parameter and WebComboBoxRelay are not deleted before this object!
Public Member Functions | |
| WebComboBoxParameterAttachment (RangedAudioParameter ¶meterIn, WebComboBoxRelay &combo, UndoManager *undoManager=nullptr) | |
| Creates a connection between a plug-in parameter and a WebComboBoxRelay. | |
| ~WebComboBoxParameterAttachment () override | |
| Destructor. | |
| void | sendInitialUpdate () |
| Call this after setting up your combo box in the case where you need to do extra setup after constructing this attachment. | |
| juce::WebComboBoxParameterAttachment::WebComboBoxParameterAttachment | ( | RangedAudioParameter & | parameterIn, |
| WebComboBoxRelay & | combo, | ||
| UndoManager * | undoManager = nullptr ) |
Creates a connection between a plug-in parameter and a WebComboBoxRelay.
| parameterIn | The parameter to use |
| combo | The WebComboBoxRelay to use |
| undoManager | An optional UndoManager |
|
override |
Destructor.
| void juce::WebComboBoxParameterAttachment::sendInitialUpdate | ( | ) |
Call this after setting up your combo box in the case where you need to do extra setup after constructing this attachment.