Skip to content

guitar_prometheus::ContextButton

guitar_prometheus::ContextButton

A juce::TextButton that fires onRightClick instead of onClick when the user right-clicks (or control-clicks on macOS). More…

#include <ProfileEditorPanel.h>

Inherits from juce::TextButton

Public Functions

Name
voidmouseDown(const juce::MouseEvent & e) override

Public Attributes

Name
std::function< void()>onRightClick

Detailed Description

class guitar_prometheus::ContextButton;

A juce::TextButton that fires onRightClick instead of onClick when the user right-clicks (or control-clicks on macOS).

Used for the Import / Export buttons that surface a clipboard variant via popup menu without growing the visible button count.

Public Functions Documentation

function mouseDown

inline void mouseDown(
const juce::MouseEvent & e
) override

Public Attributes Documentation

variable onRightClick

std::function< void()> onRightClick;

Updated on 2026-05-29 at 07:39:52 +0000