| 14 | namespace e47 { |
| 15 | |
| 16 | ProcessorWindow::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 | |
| 35 | ProcessorWindow::ProcessorWindow(std::shared_ptr<Processor> proc, Thread::ThreadID tid, CaptureCallbackFFmpeg func, |
| 36 | std::function<void()> onHide, int x, int y) |
nothing calls this directly
no test coverage detected