JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
juce::SliderParameterAttachment Class Reference

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

#include "juce_ParameterAttachments.h"

Inheritance diagram for juce::SliderParameterAttachment:
juce::Slider::Listener

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.
 

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!

@tags{Audio}

Definition at line 133 of file juce_ParameterAttachments.h.

Constructor & Destructor Documentation

◆ 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

Definition at line 112 of file juce_ParameterAttachments.cpp.

◆ ~SliderParameterAttachment()

juce::SliderParameterAttachment::~SliderParameterAttachment ( )
override

Destructor.

Definition at line 167 of file juce_ParameterAttachments.cpp.

Member Function Documentation

◆ 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.

Definition at line 172 of file juce_ParameterAttachments.cpp.


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