MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / ButtonClicked

Method ButtonClicked

Source/EnvelopeEditor.cpp:572–586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570}
571
572void EnvelopeEditor::ButtonClicked(ClickButton* button, double time)
573{
574 if (button == mPinButton)
575 {
576 if (!mPinned)
577 {
578 TheSynth->AddDynamicModule(this);
579 TheSynth->PopModalFocusItem();
580
581 SetName(GetUniqueName("envelopeeditor", TheSynth->GetModuleNames<EnvelopeEditor*>()).c_str());
582
583 Pin();
584 }
585 }
586}
587
588void EnvelopeEditor::Pin()
589{

Callers

nothing calls this directly

Calls 3

GetUniqueNameFunction · 0.85
AddDynamicModuleMethod · 0.80
PopModalFocusItemMethod · 0.80

Tested by

no test coverage detected