JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::AudioProcessorValueTreeState::SliderAttachment Class Reference

An object of this class maintains a connection between a Slider and a parameter in an AudioProcessorValueTreeState. More...

#include <juce_AudioProcessorValueTreeState.h>

Collaboration diagram for juce::AudioProcessorValueTreeState::SliderAttachment:

Public Member Functions

 SliderAttachment (AudioProcessorValueTreeState &stateToUse, const String &parameterID, Slider &slider)
 

Private Attributes

std::unique_ptr< SliderParameterAttachmentattachment
 

Detailed Description

An object of this class maintains a connection between a Slider and a parameter in an AudioProcessorValueTreeState.

During the lifetime of this SliderAttachment 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 AudioProcessorValueTreeState and Slider aren't deleted before this object!

Constructor & Destructor Documentation

◆ SliderAttachment()

juce::AudioProcessorValueTreeState::SliderAttachment::SliderAttachment ( AudioProcessorValueTreeState stateToUse,
const String parameterID,
Slider slider 
)

Member Data Documentation

◆ attachment

std::unique_ptr<SliderParameterAttachment> juce::AudioProcessorValueTreeState::SliderAttachment::attachment
private

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