An object of this class maintains a connection between a Button and a parameter in an AudioProcessorValueTreeState. More...
#include <juce_AudioProcessorValueTreeState.h>
Public Member Functions | |
ButtonAttachment (AudioProcessorValueTreeState &stateToControl, const String ¶meterID, Button &buttonToControl) | |
~ButtonAttachment () | |
Private Attributes | |
ScopedPointer< Pimpl > | pimpl |
Friends | |
struct | ContainerDeletePolicy< Pimpl > |
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!
AudioProcessorValueTreeState::ButtonAttachment::ButtonAttachment | ( | AudioProcessorValueTreeState & | stateToControl, |
const String & | parameterID, | ||
Button & | buttonToControl | ||
) |
AudioProcessorValueTreeState::ButtonAttachment::~ButtonAttachment | ( | ) |
|
friend |
|
private |