Loading...
Searching...
No Matches
juce::AudioProcessorEditorHostContext Struct Referenceabstract

Detailed Description

Calling AudioProcessorEditor::getHostContext() may return a pointer to an instance of this class.

At the moment, this can be used to retrieve context menus for parameters in compatible VST3 hosts. Additional extensions may be added here in the future.

Public Member Functions

virtual ~AudioProcessorEditorHostContext ()=default
virtual std::unique_ptr< HostProvidedContextMenugetContextMenuForParameter (const AudioProcessorParameter *) const =0
 Returns an object which can be used to display a context menu for the parameter with the given index.
virtual std::unique_ptr< HostProvidedContextMenugetContextMenuForParameterIndex (const AudioProcessorParameter *p) const
 The naming of this function is misleading.

Constructors and Destructors

◆ ~AudioProcessorEditorHostContext()

virtual juce::AudioProcessorEditorHostContext::~AudioProcessorEditorHostContext ( )
virtualdefault

Member Functions

◆ getContextMenuForParameter()

virtual std::unique_ptr< HostProvidedContextMenu > juce::AudioProcessorEditorHostContext::getContextMenuForParameter ( const AudioProcessorParameter * ) const
pure virtual

Returns an object which can be used to display a context menu for the parameter with the given index.

Referenced by getContextMenuForParameterIndex().

◆ getContextMenuForParameterIndex()

virtual std::unique_ptr< HostProvidedContextMenu > juce::AudioProcessorEditorHostContext::getContextMenuForParameterIndex ( const AudioProcessorParameter * p) const
virtual

The naming of this function is misleading.

Use getContextMenuForParameter() instead.

Returns an object which can be used to display a context menu for the parameter with the given index.

References getContextMenuForParameter().

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram