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

Method ProcessorWindow

Server/Source/ProcessorWindow.cpp:16–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14namespace e47 {
15
16ProcessorWindow::ProcessorWindow(std::shared_ptr<Processor> proc, Thread::ThreadID tid, CaptureCallbackNative func,
17 std::function<void()> onHide, int x, int y)
18 : DocumentWindow(proc->getName(), Colours::lightgrey, DocumentWindow::closeButton),
19 LogTag("procwindow"),
20 m_processor(proc),
21 m_tid(tid),
22 m_callbackNative(func),
23 m_callbackFFmpeg(nullptr),
24 m_onHide(onHide) {
25 traceScope();
26 initAsyncFunctors();
27 setBounds(x, y, 100, 100);
28 logln("creating processor window for " << m_processor->getName() << "(channel=" << proc->getActiveWindowChannel()
29 << ") at " << x << "x" << y);
30 if (m_processor->hasEditor()) {
31 createEditor();
32 }
33}
34
35ProcessorWindow::ProcessorWindow(std::shared_ptr<Processor> proc, Thread::ThreadID tid, CaptureCallbackFFmpeg func,
36 std::function<void()> onHide, int x, int y)

Callers

nothing calls this directly

Calls 3

getNameMethod · 0.45
hasEditorMethod · 0.45

Tested by

no test coverage detected