| 822 | } |
| 823 | |
| 824 | void Window::PrivateData::onPuglMotion(const Widget::MotionEvent& ev) |
| 825 | { |
| 826 | DGL_DBGp("onPuglMotion : %f %f\n", ev.pos.getX(), ev.pos.getY()); |
| 827 | |
| 828 | if (modal.child != nullptr) |
| 829 | return modal.child->focus(); |
| 830 | |
| 831 | #ifndef DPF_TEST_WINDOW_CPP |
| 832 | FOR_EACH_TOP_LEVEL_WIDGET_INV(rit) |
| 833 | { |
| 834 | TopLevelWidget* const widget(*rit); |
| 835 | |
| 836 | if (widget->isVisible() && widget->onMotion(ev)) |
| 837 | break; |
| 838 | } |
| 839 | #endif |
| 840 | } |
| 841 | |
| 842 | void Window::PrivateData::onPuglScroll(const Widget::ScrollEvent& ev) |
| 843 | { |
no test coverage detected