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

Method updateIsShowing

source/PluginEditor.cpp:115–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115void PluginEditor::updateIsShowing() {
116 const auto is_showing = isShowing();
117 if (is_showing != base_.getIsEditorShowing()) {
118 base_.setIsEditorShowing(is_showing);
119 p_ref_.getController().setEditorON(is_showing);
120 if (is_showing) {
121 main_panel_.startThreads();
122 vblank_ = std::make_unique<juce::VBlankAttachment>(
123 &main_panel_, [this](const double x) { main_panel_.repaintCallBack(x); });
124 } else {
125 vblank_.reset();
126 main_panel_.stopThreads();
127 }
128 }
129}
130
131int PluginEditor::getControlParameterIndex(Component& c) {
132 const auto id = c.getComponentID();

Callers

nothing calls this directly

Calls 7

getIsEditorShowingMethod · 0.80
setIsEditorShowingMethod · 0.80
setEditorONMethod · 0.80
startThreadsMethod · 0.45
repaintCallBackMethod · 0.45
resetMethod · 0.45
stopThreadsMethod · 0.45

Tested by

no test coverage detected