JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::AudioProcessorEditorHostContext Struct Referenceabstract

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

#include <juce_AudioProcessorEditorHostContext.h>

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. More...
 
virtual std::unique_ptr< HostProvidedContextMenugetContextMenuForParameterIndex (const AudioProcessorParameter *p) const
 The naming of this function is misleading. More...
 

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.

@tags{Audio}

Constructor & Destructor Documentation

◆ ~AudioProcessorEditorHostContext()

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

Member Function Documentation

◆ 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
inlinevirtual

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(), and juce::gl::p.


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