MCPcopy Create free account
hub / github.com/apohl79/audiogridder / getOrCreateEditorWindowInternal

Method getOrCreateEditorWindowInternal

Server/Source/Processor.cpp:920–933  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

918
919template <typename T>
920std::shared_ptr<ProcessorWindow> Processor::getOrCreateEditorWindowInternal(Thread::ThreadID tid, T func,
921 std::function<void()> onHide, int x,
922 int y) {
923 traceScope();
924
925 if (auto& w = m_windows[getWindowIndex()]) {
926 return w;
927 }
928
929 auto w = std::make_shared<ProcessorWindow>(shared_from_this(), tid, func, onHide, x, y);
930 m_windows[getWindowIndex()] = w;
931
932 return w;
933}
934
935std::shared_ptr<ProcessorWindow> Processor::recreateEditorWindow() {
936 traceScope();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected