JUCE  v5.1.1-3-g1a0b28c73
JUCE API
AudioProcessorValueTreeState::ComboBoxAttachment Class Reference

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

#include <juce_AudioProcessorValueTreeState.h>

Collaboration diagram for AudioProcessorValueTreeState::ComboBoxAttachment:

Public Member Functions

 ComboBoxAttachment (AudioProcessorValueTreeState &stateToControl, const String &parameterID, ComboBox &comboBoxToControl)
 
 ~ComboBoxAttachment ()
 

Private Attributes

ScopedPointer< Pimpl > pimpl
 

Friends

struct ContainerDeletePolicy< Pimpl >
 

Detailed Description

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

During the lifetime of this ComboBoxAttachment object, it keeps the two things in sync, making it easy to connect a combo box to a parameter. When this object is deleted, the connection is broken. Make sure that your AudioProcessorValueTreeState and ComboBox aren't deleted before this object!

Constructor & Destructor Documentation

◆ ComboBoxAttachment()

AudioProcessorValueTreeState::ComboBoxAttachment::ComboBoxAttachment ( AudioProcessorValueTreeState stateToControl,
const String parameterID,
ComboBox comboBoxToControl 
)

◆ ~ComboBoxAttachment()

AudioProcessorValueTreeState::ComboBoxAttachment::~ComboBoxAttachment ( )

Friends And Related Function Documentation

◆ ContainerDeletePolicy< Pimpl >

friend struct ContainerDeletePolicy< Pimpl >
friend

Member Data Documentation

◆ pimpl

ScopedPointer<Pimpl> AudioProcessorValueTreeState::ComboBoxAttachment::pimpl
private

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