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