MCPcopy Create free account
hub / github.com/ZL-Audio/ZLEqualizer / getControlParameterIndex

Method getControlParameterIndex

source/PluginEditor.cpp:131–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131int PluginEditor::getControlParameterIndex(Component& c) {
132 const auto id = c.getComponentID();
133 if (id.isEmpty()) {
134 return -1;
135 }
136 if (const auto para = p_ref_.parameters_.getParameter(id); para == nullptr) {
137 return -1;
138 } else {
139 return para->getParameterIndex();
140 }
141}
142
143void PluginEditor::mouseDown(const juce::MouseEvent& event) {
144 if (event.mods.isRightButtonDown() && event.getNumberOfClicks() == 1) {

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.80

Tested by

no test coverage detected