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::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"

Public Member Functions

 ComboBoxAttachment (AudioProcessorValueTreeState &stateToUse, const String &parameterID, ComboBox &combo)
 

Detailed Description

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

Combobox items will be spaced linearly across the range of the parameter. For example if the range is specified by NormalisableRange<float> (-0.5f, 0.5f, 0.5f) and you add three items then the first will be mapped to a value of -0.5, the second to 0, and the third to 0.5.

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!

Definition at line 566 of file juce_AudioProcessorValueTreeState.h.

Constructor & Destructor Documentation

◆ ComboBoxAttachment()

juce::AudioProcessorValueTreeState::ComboBoxAttachment::ComboBoxAttachment ( AudioProcessorValueTreeState stateToUse,
const String parameterID,
ComboBox combo 
)

Definition at line 491 of file juce_AudioProcessorValueTreeState.cpp.


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