MCPcopy Create free account
hub / github.com/DISTRHO/DPF / onPuglExpose

Method onPuglExpose

dgl/src/WindowPrivateData.cpp:698–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696}
697
698void Window::PrivateData::onPuglExpose()
699{
700 // DGL_DBG("PUGL: onPuglExpose\n");
701
702 puglOnDisplayPrepare(view);
703
704#ifndef DPF_TEST_WINDOW_CPP
705 startContext();
706
707 FOR_EACH_TOP_LEVEL_WIDGET(it)
708 {
709 TopLevelWidget* const widget(*it);
710
711 if (widget->isVisible())
712 widget->pData->display();
713 }
714
715 if (char* const filename = filenameToRenderInto)
716 {
717 const PuglArea size = puglGetSizeHint(view, PUGL_CURRENT_SIZE);
718 filenameToRenderInto = nullptr;
719 renderToPicture(filename, getGraphicsContext(), size.width, size.height);
720 std::free(filename);
721 }
722
723 endContext();
724#endif
725}
726
727void Window::PrivateData::onPuglClose()
728{

Callers 1

puglEventCallbackMethod · 0.80

Calls 1

puglOnDisplayPrepareFunction · 0.85

Tested by

no test coverage detected