| 696 | } |
| 697 | |
| 698 | void 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 | |
| 727 | void Window::PrivateData::onPuglClose() |
| 728 | { |
no test coverage detected