JUCE v8.0.9
JUCE API
 
Loading...
Searching...
No Matches
juce::WebComboBoxParameterAttachment Class Reference

An object of this class maintains a connection between a WebComboBoxRelay and a plug-in parameter. More...

#include <juce_ParameterAttachments.h>

Inheritance diagram for juce::WebComboBoxParameterAttachment:
Collaboration diagram for juce::WebComboBoxParameterAttachment:

Public Member Functions

 WebComboBoxParameterAttachment (RangedAudioParameter &parameterIn, WebComboBoxRelay &combo, UndoManager *undoManager=nullptr)
 Creates a connection between a plug-in parameter and a WebComboBoxRelay.
 
 ~WebComboBoxParameterAttachment () override
 Destructor.
 
void sendInitialUpdate ()
 Call this after setting up your combo box in the case where you need to do extra setup after constructing this attachment.
 

Private Member Functions

void initialUpdateRequested () override
 
void setValue (float newValue)
 
void valueChanged (float newValue) override
 

Private Attributes

ParameterAttachment attachment
 
bool ignoreCallbacks = false
 
RangedAudioParameterparameter
 
WebComboBoxRelayrelay
 

Detailed Description

An object of this class maintains a connection between a WebComboBoxRelay and a plug-in parameter.

During the lifetime of this object it keeps the two things in sync, making it easy to connect a WebComboBoxRelay to a parameter. When this object is deleted, the connection is broken. Make sure that your parameter and WebComboBoxRelay are not deleted before this object!

@tags{Audio}

Constructor & Destructor Documentation

◆ WebComboBoxParameterAttachment()

juce::WebComboBoxParameterAttachment::WebComboBoxParameterAttachment ( RangedAudioParameter parameterIn,
WebComboBoxRelay combo,
UndoManager undoManager = nullptr 
)

Creates a connection between a plug-in parameter and a WebComboBoxRelay.

Parameters
parameterInThe parameter to use
comboThe WebComboBoxRelay to use
undoManagerAn optional UndoManager

◆ ~WebComboBoxParameterAttachment()

juce::WebComboBoxParameterAttachment::~WebComboBoxParameterAttachment ( )
override

Destructor.

Member Function Documentation

◆ initialUpdateRequested()

void juce::WebComboBoxParameterAttachment::initialUpdateRequested ( )
overrideprivatevirtual

◆ sendInitialUpdate()

void juce::WebComboBoxParameterAttachment::sendInitialUpdate ( )

Call this after setting up your combo box in the case where you need to do extra setup after constructing this attachment.

◆ setValue()

void juce::WebComboBoxParameterAttachment::setValue ( float  newValue)
private

◆ valueChanged()

void juce::WebComboBoxParameterAttachment::valueChanged ( float  newValue)
overrideprivatevirtual

Member Data Documentation

◆ attachment

ParameterAttachment juce::WebComboBoxParameterAttachment::attachment
private

◆ ignoreCallbacks

bool juce::WebComboBoxParameterAttachment::ignoreCallbacks = false
private

◆ parameter

RangedAudioParameter& juce::WebComboBoxParameterAttachment::parameter
private

◆ relay

WebComboBoxRelay& juce::WebComboBoxParameterAttachment::relay
private

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