JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::AudioProcessorValueTreeState::ButtonAttachment Class Reference

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

#include <juce_AudioProcessorValueTreeState.h>

Collaboration diagram for juce::AudioProcessorValueTreeState::ButtonAttachment:

Public Member Functions

 ButtonAttachment (AudioProcessorValueTreeState &stateToControl, const String &parameterID, Button &buttonToControl)
 
 ~ButtonAttachment ()
 

Private Attributes

std::unique_ptr< Pimpl > pimpl
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ ButtonAttachment()

juce::AudioProcessorValueTreeState::ButtonAttachment::ButtonAttachment ( AudioProcessorValueTreeState stateToControl,
const String parameterID,
Button buttonToControl 
)

◆ ~ButtonAttachment()

juce::AudioProcessorValueTreeState::ButtonAttachment::~ButtonAttachment ( )

Member Data Documentation

◆ pimpl

std::unique_ptr<Pimpl> juce::AudioProcessorValueTreeState::ButtonAttachment::pimpl
private

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