JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
juce::HostProvidedContextMenu Struct Referenceabstract

This wraps a context menu for a specific parameter, as provided by the host. More...

#include "juce_AudioProcessorEditorHostContext.h"

Public Member Functions

virtual PopupMenu getEquivalentPopupMenu () const =0
 Get a PopupMenu holding entries specified by the host.
 
virtual void showNativeMenu (Point< int > pos) const =0
 Asks the host to display its native menu at a location relative to the top left corner of the editor.
 

Detailed Description

This wraps a context menu for a specific parameter, as provided by the host.

You can choose to create a standard PopupMenu to display the host-provided options. Alternatively, you can ask the host to display a native menu at a specific location.

@tags{Audio}

Definition at line 37 of file juce_AudioProcessorEditorHostContext.h.

Member Function Documentation

◆ getEquivalentPopupMenu()

virtual PopupMenu juce::HostProvidedContextMenu::getEquivalentPopupMenu ( ) const
pure virtual

Get a PopupMenu holding entries specified by the host.

Most hosts will populate this menu with options that relate to the parameter, such as displaying its automation lane. You are free to modify this menu before displaying it, if you wish to add additional options.

◆ showNativeMenu()

virtual void juce::HostProvidedContextMenu::showNativeMenu ( Point< int pos) const
pure virtual

Asks the host to display its native menu at a location relative to the top left corner of the editor.

The position you provide should be in logical pixels. To display the menu next to the mouse cursor, call Component::getMouseXYRelative() on your editor and pass the result to this function.


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