9 addMouseListener(
this,
true);
33 m_editableLabel->getLabel().setColour(juce::Label::textColourId, juce::Colours::lightgrey);
34 m_editableLabel->getLabel().setJustificationType(Justification::centredBottom);
45 midiModeParam->valueChanged =
nullptr;
62 std::function<void(
int)> menuCallback = [&](
int itemResultID) {
72 menu.showMenuAsync(PopupMenu::Options{}
74 .withMinimumNumColumns(1)
75 .withStandardItemHeight(20),
85 auto kwidgetBounds = getLocalBounds();
88 auto triggerButtonBounds = kwidgetBounds.removeFromTop(
static_cast<int>(2.0f * getHeight() / 3.0f));
89 const int contextMenuWidth{20};
90 auto contextButtonRect = triggerButtonBounds.removeFromRight(contextMenuWidth);
97 int labelWidth =
static_cast<int>(triggerButtonBounds.getWidth());
99 auto labelBounds = Rectangle<int>(
static_cast<int>(triggerButtonBounds.getWidth()) - labelWidth,
100 static_cast<int>(triggerButtonBounds.getBottom()), labelWidth, labelHeight);
104 m_contextMenu.setBounds(contextButtonRect.removeFromTop(contextMenuWidth));
std::function< void(const var &)> valueChanged
Definition CustomParameter.h:60
const var & getValue() const
Definition CustomParameter.cpp:39
void setValue(const var &newValue, bool selfUpdate=false)
Definition CustomParameter.cpp:46
GenericParameter * getAttachedParameter()
Definition KParameter.cpp:170
Definition AirAbsorptionFilter.cpp:2