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

Method recreateEditorWindow

Server/Source/Processor.cpp:935–955  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

933}
934
935std::shared_ptr<ProcessorWindow> Processor::recreateEditorWindow() {
936 traceScope();
937
938 if (auto& w = m_windows[getWindowIndex()]) {
939 auto pos = w->getPosition();
940 auto tid = w->getTid();
941 auto onHide = w->getOnHide();
942 if (auto func = w->getCaptureCallbackFFmpeg()) {
943 w.reset();
944 return getOrCreateEditorWindowInternal(tid, func, onHide, pos.x, pos.y);
945 }
946 if (auto func = w->getCaptureCallbackNative()) {
947 w.reset();
948 return getOrCreateEditorWindowInternal(tid, func, onHide, pos.x, pos.y);
949 }
950 }
951
952 logln("error: can't recreate editor as no window exists");
953
954 return nullptr;
955}
956
957void Processor::showEditor(int x, int y) {
958 traceScope();

Callers 1

restartEditorMethod · 0.80

Calls 6

getTidMethod · 0.80
getOnHideMethod · 0.80
getPositionMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected