Loading...
Searching...
No Matches
juce::SliderParameterAttachment Class Reference

Detailed Description

An object of this class maintains a connection between a Slider and a plug-in parameter.

During the lifetime of this object it keeps the two things in sync, making it easy to connect a slider to a parameter. When this object is deleted, the connection is broken. Make sure that your parameter and Slider are not deleted before this object!

Inheritance diagram for juce::SliderParameterAttachment:

Public Member Functions

 SliderParameterAttachment (RangedAudioParameter &parameter, Slider &slider, UndoManager *undoManager=nullptr)
 Creates a connection between a plug-in parameter and a Slider.
 ~SliderParameterAttachment () 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.

Constructors and Destructors

◆ SliderParameterAttachment()

juce::SliderParameterAttachment::SliderParameterAttachment ( RangedAudioParameter & parameter,
Slider & slider,
UndoManager * undoManager = nullptr )

Creates a connection between a plug-in parameter and a Slider.

Parameters
parameterThe parameter to use
sliderThe Slider to use
undoManagerAn optional UndoManager

◆ ~SliderParameterAttachment()

juce::SliderParameterAttachment::~SliderParameterAttachment ( )
override

Destructor.

Member Functions

◆ sendInitialUpdate()

void juce::SliderParameterAttachment::sendInitialUpdate ( )

Call this after setting up your slider in the case where you need to do extra setup after constructing this attachment.

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram